java.lang.NullPointerException in com.badlogic.gdx.backends.android.AndroidMouseHandler.onGenericMotion
See original GitHub issueI got crash on Lenovo(A880), android 4.2
Issue details
java.lang.NullPointerException at com.badlogic.gdx.backends.android.AndroidMouseHandler.onGenericMotion(AndroidMouseHandler.java:62) at com.badlogic.gdx.backends.android.AndroidInputThreePlus.onGenericMotion(AndroidInputThreePlus.java:47) at android.view.View.dispatchGenericMotionEventInternal(View.java:7415) at android.view.View.dispatchGenericMotionEvent(View.java:7402) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1799) at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:1533) at android.view.View.dispatchGenericMotionEvent(View.java:7392) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1799) at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:1533) at android.view.View.dispatchGenericMotionEvent(View.java:7392) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1799) at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:1533) at android.view.View.dispatchGenericMotionEvent(View.java:7392) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1799) at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:1533) at android.view.ViewGroup.exitHoverTargets(ViewGroup.java:1615) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2613) at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:2997) at android.view.ViewRootImpl.doDie(ViewRootImpl.java:4598) at android.view.ViewRootImpl.die(ViewRootImpl.java:4578) at android.view.WindowManagerGlobal.removeViewLocked(WindowManagerGlobal.java:338) at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:288) at android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:84) at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3790) at android.app.ActivityThread.access$1200(ActivityThread.java:165) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1426) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5476) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) at dalvik.system.NativeStart.main(Native Method)
Version of LibGDX and/or relevant dependencies
1.9.3-SNAPSHOT
Please select the affected platforms
- Android
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Closed #4013 as it is a duplicate issue. Seems like handleDestroyActivity is called after destroy is called, so the change https://github.com/libgdx/libgdx/commit/5498c2f32a1f45c9b1e4303be5a70da0dc7dba95 causes these NPEs.
Hi. On LibGDX 1.9.3 NPE was returned.