Fatal error in my app

Hey guys i have uploaded my app on playstore and im getting around 700 downloads a day right now. unfortunately a lot of crashes are there in some devices. and here is the report of the major fatal error in the app. im not having any single crash on my device so im unable to understand.
Here is the error details:

java.lang.NullPointerException:

at com.google.appinventor.components.runtime.ListView$1.onTextChanged (ListView.java:125)

at android.widget.TextView.sendOnTextChanged (TextView.java:7982)

at android.widget.TextView.handleTextChanged (TextView.java:8045)

at android.widget.TextView$ChangeWatcher.onTextChanged (TextView.java:9803)

at android.text.SpannableStringBuilder.sendTextChanged (SpannableStringBuilder.java:982)

at android.text.SpannableStringBuilder.replace (SpannableStringBuilder.java:528)

at android.text.SpannableStringBuilder.replace (SpannableStringBuilder.java:465)

at android.text.SpannableStringBuilder.replace (SpannableStringBuilder.java:38)

at android.text.method.QwertyKeyListener.onKeyDown (QwertyKeyListener.java:223)

at android.text.method.TextKeyListener.onKeyDown (TextKeyListener.java:136)

at android.widget.TextView.doKeyDown (TextView.java:5901)

at android.widget.TextView.onKeyDown (TextView.java:5714)

at android.view.KeyEvent.dispatch (KeyEvent.java:2691)

at android.view.View.dispatchKeyEvent (View.java:8506)

at android.view.ViewGroup.dispatchKeyEvent (ViewGroup.java:1526)

at android.view.ViewGroup.dispatchKeyEvent (ViewGroup.java:1526)

at android.view.ViewGroup.dispatchKeyEvent (ViewGroup.java:1526)

at android.view.ViewGroup.dispatchKeyEvent (ViewGroup.java:1526)

at android.view.ViewGroup.dispatchKeyEvent (ViewGroup.java:1526)

at android.view.ViewGroup.dispatchKeyEvent (ViewGroup.java:1526)

at android.view.ViewGroup.dispatchKeyEvent (ViewGroup.java:1526)

at android.view.ViewGroup.dispatchKeyEvent (ViewGroup.java:1526)

at android.view.ViewGroup.dispatchKeyEvent (ViewGroup.java:1526)

at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent (PhoneWindow.java:2485)

at com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent (PhoneWindow.java:1784)

at android.app.Activity.dispatchKeyEvent (Activity.java:2848)

at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent (PhoneWindow.java:2391)

at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent (ViewRootImpl.java:4556)

at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess (ViewRootImpl.java:4512)

at android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:4034)

at android.view.ViewRootImpl$InputStage.onDeliverToNext (ViewRootImpl.java:4087)

at android.view.ViewRootImpl$InputStage.forward (ViewRootImpl.java:4053)

at android.view.ViewRootImpl$AsyncInputStage.forward (ViewRootImpl.java:4190)

at android.view.ViewRootImpl$InputStage.apply (ViewRootImpl.java:4061)

at android.view.ViewRootImpl$AsyncInputStage.apply (ViewRootImpl.java:4247)

at android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:4034)

at android.view.ViewRootImpl$InputStage.onDeliverToNext (ViewRootImpl.java:4087)

at android.view.ViewRootImpl$InputStage.forward (ViewRootImpl.java:4053)

at android.view.ViewRootImpl$InputStage.apply (ViewRootImpl.java:4061)

at android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:4034)

at android.view.ViewRootImpl.deliverInputEvent (ViewRootImpl.java:6463)

at android.view.ViewRootImpl.doProcessInputEvents (ViewRootImpl.java:6437)

at android.view.ViewRootImpl.enqueueInputEvent (ViewRootImpl.java:6390)

at android.view.ViewRootImpl$ViewRootHandler.handleMessage (ViewRootImpl.java:3818)

at android.os.Handler.dispatchMessage (Handler.java:111)

at android.os.Looper.loop (Looper.java:194)

at android.app.ActivityThread.main (ActivityThread.java:5631)

at java.lang.reflect.Method.invoke (Native Method)

at java.lang.reflect.Method.invoke (Method.java:372)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:959)

at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:754)

Kindly help what can i do to reduce these error

Can you give details on which Android versions it crashed?

1 Like

Yes . here is the detail of the version of android

14 minutes ago on app version 9
Samsung Galaxy J2 (j2lte), 1024MB RAM, Android 5.1
Report 1
java.lang.NullPointerException:

at com.google.appinventor.components.runtime.ListView$1.onTextChanged (ListView.java:125)

at android.widget.TextView.sendOnTextChanged (TextView.java:9044)

at android.widget.TextView.handleTextChanged (TextView.java:9141)

at android.widget.TextView$ChangeWatcher.onTextChanged (TextView.java:11720)

at android.text.SpannableStringBuilder.sendTextChanged (SpannableStringBuilder.java:968)

at android.text.SpannableStringBuilder.replace (SpannableStringBuilder.java:519)

at android.text.SpannableStringBuilder.replace (SpannableStringBuilder.java:456)

at android.text.SpannableStringBuilder.replace (SpannableStringBuilder.java:33)

at android.view.inputmethod.BaseInputConnection.replaceText (BaseInputConnection.java:691)

at android.view.inputmethod.BaseInputConnection.setComposingText (BaseInputConnection.java:447)

at com.android.internal.view.IInputConnectionWrapper.executeMessage (IInputConnectionWrapper.java:340)

at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage (IInputConnectionWrapper.java:78)

at android.os.Handler.dispatchMessage (Handler.java:102)

at android.os.Looper.loop (Looper.java:145)

at android.app.ActivityThread.main (ActivityThread.java:6946)

at java.lang.reflect.Method.invoke (Native Method)

at java.lang.reflect.Method.invoke (Method.java:372)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1404)

at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1199)

Looks like here is the problem.
It have something to do with the “Filter Bar” option in the listview component.

Iam sure some users try to enter anything and then they get a crash (I don’t know why because I have never got a issue with the filter bar).

I look if I can integrate there a check so that no crash will occure.

1 Like