crash reporting catch two crashed after calling TextView.setText() with valid string (formated as "Session 16/09/2015 10:12")
on nexus7 with 5.0.2 and Galaxy S6 (SM-G925F) with 5.1.1 I cannot find steps to reproduce it
Android: 5.0.2 Manufacturer: asus Model: Nexus 7
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.text.method.WordIterator.setCharSequence(java.lang.CharSequence, int, int)' on a null object reference at android.widget.SpellChecker$SpellParser.parse(SpellChecker.java:559) at android.widget.SpellChecker$SpellParser.parse(SpellChecker.java:516) at android.widget.SpellChecker.spellCheck(SpellChecker.java:257) at android.widget.Editor.updateSpellCheckSpans(Editor.java:541) at android.widget.Editor.sendOnTextChanged(Editor.java:1017) at android.widget.TextView.sendOnTextChanged(TextView.java:7667) at android.widget.TextView.setText(TextView.java:4050) at android.widget.TextView.setText(TextView.java:3905) at android.widget.EditText.setText(EditText.java:85) at android.widget.TextView.setText(TextView.java:3880) ....my code that calls setText()
Does anybody seen something like this? Seems android crashes when try use spellchecker and show suggestions. I`m going to disable it with
android:inputType="textNoSuggestions"
May this help?