fix: Adjusting valueInInputIndex validation #425
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe the bug
I just have a report from Sentry, no information about how to reproduce.
Package version
0.7.14
Flutter version
3.19.5
To Reproduce
Unknown, I just have the crash report from Crashlytics without anything else.
Expected behavior
Not to bug.
Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: RangeError (index): Invalid value: Not in inclusive range 0..3: 7
#00 pc 0x8657e0 com.myapp.app (_StringBase.[] [string_patch.dart:273]) (BuildId: ec846970599136b05ad68741d8ce9fc5)
#1 pc 0x8ece37 com.myapp.app (AsYouTypeFormatter.formatEditUpdate. [as_you_type_formatter.dart:57]) (BuildId: ec846970599136b05ad68741d8ce9fc5)
#2 pc 0x867de8 com.myapp.app (Future._propagateToListeners.handleValueCallback [future_impl.dart:838]) (BuildId: ec846970599136b05ad68741d8ce9fc5)
#3 pc 0x25bc95 com.myapp.app (Future._propagateToListeners [future_impl.dart:867]) (BuildId: ec846970599136b05ad68741d8ce9fc5)
#4 pc 0x25ce67 com.myapp.app (Future._completeWithValue [future_impl.dart:643]) (BuildId: ec846970599136b05ad68741d8ce9fc5)
#5 pc 0x857033 com.myapp.app (_SuspendState._returnAsync [async_patch.dart:352]) (BuildId: ec846970599136b05ad68741d8ce9fc5)