NullPointerException in handleOnGetSentenceSuggestionsMultiple (SpellCheckerSession)

I received the following exception message that was reported several times in my ACRA reports. It seems like this only happens with devices running Android 4.4.2, but I have no idea where the problem might be.

Has anyone already encountered this problem?

thanks

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: https://code.google.com/p/android/issues/detail?id=161400

Developers in the thread have the same problem, only on devices running Android 4.4.2. It seems to be fixed in other versions.

+7
android nullpointerexception
source share
2 answers

What a job for me -

 _editText.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS); 

you can do this in an xml file like

 android:inputType="textNoSuggestions" 

I default this flag to true, so it gives this exception if it gives below 23 version of Android, abouve 23 is working fine

This is not an answer, but until someone answers this question, we can use the shortcut above

+2
source share

Disable suggestions like this:

 android:inputType="textNoSuggestions|textVisiblePassword" 

works better than just:

 android:inputType="textNoSuggestions" 
0
source share

All Articles