java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • How to get getSharedPreferences in android?
    via Stack Overflow by Tushar
    ,
  • Sliding menu listeners
    via Stack Overflow by Rakeeb Rajbhandari
    ,
    • 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)

    Users with the same issue

    Unknown visitor1 times, last one,