java.lang.NullPointerException: This exception has no message.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by Faiz Mir
, 4 months ago
This exception has no message.
java.lang.NullPointerException:
at com.example.test.OverlayActivity$2.onTouch(OverlayActivity.java:186)
at android.view.View.dispatchTouchEvent(View.java:7293)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2179)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1914)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2185)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1886)
at android.view.View.dispatchPointerEvent(View.java:7514)
at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3679)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3623)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4798)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4777)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4873)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:208)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:125)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5751)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1083)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.