I got the following exception reported several times in my ACRA reports. It seems to be coming only from devices running Android 4.4.2 but I have no idea where could be the problem.
Did anyone already meet this problem?
Thank you
java.lang.NullPointerException
at android.view.textservice.SpellCheckerSession.handleOnGetSentenceSuggestionsMultiple(SpellCheckerSession.java:222)
at android.view.textservice.SpellCheckerSession.access$100(SpellCheckerSession.java:86)
at android.view.textservice.SpellCheckerSession$1.handleMessage(SpellCheckerSession.java:116)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:149)
at android.app.ActivityThread.main(ActivityThread.java:5061)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:603)
at dalvik.system.NativeStart.main(Native Method)
UPDATE
There is this thread running: https://code.google.com/p/android/issues/detail?id=161400
Developers on the thread have the exact same problem, on devices running Android 4.4.2 only. It seems to be fixed on the other versions.
What work for me is
_editText.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
you can do this in xml file like
android:inputType="textNoSuggestions"
I thing by default this flag is true thats why it give this exception if give below 23 android version ,abouve 23 work fine
This is not the answer but until someone give answer to this question we can use above shortcut
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With