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

Solutions on the web

via Stack Overflow by user1118764
, 1 year ago
via Stack Overflow by user3403827
, 2 years ago
via Stack Overflow by user3403827
, 2 years ago
via Stack Overflow by Faiz Mir
, 9 months ago
This exception has no message.
via Stack Overflow by bobby123
, 2 years ago
java.lang.NullPointerException: 	at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:161)	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)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:850)	at dalvik.system.NativeStart.main(Native Method)