java.lang.ExceptionInInitializerError

Stack Overflow | BabiSter | 5 months ago
  1. 0

    .getContext() / this produces null object reference inside PreferenceActivity

    Stack Overflow | 1 year ago | MalumAtire832
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{nl.knapper_development.www.jrw/nl.knapper_development.www.jrw.instelling}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
  2. 0

    rotated device on library screen

    GitHub | 1 year ago | door43app
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Download the Android SDK: octobre 2015

    blogspot.com | 1 year ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
  5. 0

    SharedPreferences/Context Throw NullPointerException

    Stack Overflow | 11 months ago | Onur Çevik
    java.lang.RuntimeException: Unable to instantiate receiver com.theoc.stormy.Receiver: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference

  1. ivotje50 2 times, last 5 months ago
  2. joni1408 1 times, last 6 months ago
  3. Mihail Melnic 2 times, last 7 months ago
  4. asvid 209 times, last 7 months ago
  5. martyn 2 times, last 8 months ago
3 more registered users
4 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. Android Platform
    PreferenceManager.getDefaultSharedPreferences
    1. android.preference.PreferenceManager.getDefaultSharedPreferencesName(PreferenceManager.java:383)
    2. android.preference.PreferenceManager.getDefaultSharedPreferences(PreferenceManager.java:378)
    2 frames
  3. com.sovran.sov2fa
    AccountsActivity.<clinit>
    1. com.sovran.sov2fa.AccountsActivity.<clinit>(AccountsActivity.java:20)
    1 frame