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.

  • Download the Android SDK: octobre 2015
    via by Unknown author,
    • java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference at android.preference.PreferenceManager.getDefaultSharedPreferencesName(PreferenceManager.java:376) at android.preference.PreferenceManager.getDefaultSharedPreferences(PreferenceManager.java:371) at com.horizonservers.horizon.MapFragment$Medium$1.onFinish(MapFragment.java:658) at android.os.CountDownTimer$1.handleMessage(CountDownTimer.java:127) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:7325) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

    Users with the same issue

    ivotje50
    2 times, last one,
    Indri Yunita
    4 times, last one,
    Unknown visitor1 times, last one,
    Mihail Melnic
    2 times, last one,
    Macapon
    306 times, last one,
    8 more bugmates