java.lang.NullPointerException
chwakil opened this issue · 2 comments
I am facing this issue for a long time at Google Play Console. The stack trace is:
java.lang.NullPointerException:
at android.support.v4.view.ViewPager.endFakeDrag (ViewPager.java:2577)
at com.viewpagerindicator.TitlePageIndicator.onTouchEvent (TitlePageIndicator.java:581)
at android.view.View.dispatchTouchEvent (View.java:10018)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2876)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2519)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2844)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2519)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2844)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2519)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2844)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2519)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2844)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2519)
at android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2844)
at android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2519)
at com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent (PhoneWindow.java:2869)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1861)
at android.app.Activity.dispatchTouchEvent (Activity.java:3061)
at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent (WindowCallbackWrapper.java:71)
at com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent (PhoneWindow.java:2830)
at android.view.View.dispatchPointerEvent (View.java:10253)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent (ViewRootImpl.java:5529)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess (ViewRootImpl.java:5365)
at android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:4810)
at android.view.ViewRootImpl$InputStage.onDeliverToNext (ViewRootImpl.java:4863)
at android.view.ViewRootImpl$InputStage.forward (ViewRootImpl.java:4829)
at android.view.ViewRootImpl$AsyncInputStage.forward (ViewRootImpl.java:4970)
at android.view.ViewRootImpl$InputStage.apply (ViewRootImpl.java:4837)
at android.view.ViewRootImpl$AsyncInputStage.apply (ViewRootImpl.java:5027)
at android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:4810)
at android.view.ViewRootImpl$InputStage.onDeliverToNext (ViewRootImpl.java:4863)
at android.view.ViewRootImpl$InputStage.forward (ViewRootImpl.java:4829)
at android.view.ViewRootImpl$InputStage.apply (ViewRootImpl.java:4837)
at android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:4810)
at android.view.ViewRootImpl.deliverInputEvent (ViewRootImpl.java:7531)
at android.view.ViewRootImpl.doProcessInputEvents (ViewRootImpl.java:7399)
at android.view.ViewRootImpl.enqueueInputEvent (ViewRootImpl.java:7360)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent (ViewRootImpl.java:7641)
at android.view.InputEventReceiver.dispatchInputEvent (InputEventReceiver.java:185)
at android.os.MessageQueue.nativePollOnce (MessageQueue.java)
at android.os.MessageQueue.next (MessageQueue.java:323)
at android.os.Looper.loop (Looper.java:135)
at android.app.ActivityThread.main (ActivityThread.java:7406)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)
Is there any solution to avoid this crash?
We are facing this issue in our app as well.
Mee too. My temporary workaround is to override TitlePageIndicator class and override onTouchEvent event to catch the exception.