java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.nonexistent.rs.guessthenumber/com.nonexistent.rs.guessthenumber.main}: java.lang.NullPointerException

  1. 0

    I can't use sharedpreferences without android app crashing

    Stack Overflow | 5 months ago | superchampionoftheworld
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.nonexistent.rs.guessthenumber/com.nonexistent.rs.guessthenumber.main}: java.lang.NullPointerException
  2. 0

    AppCompat Punch List

    GitHub | 2 years ago | nbradbury
    java.lang.RuntimeException: An error occured while executing doInBackground()
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. ivotje50 2 times, last 5 months ago
  2. joni1408 1 times, last 6 months ago
  3. Mihail Melnic 2 times, last 6 months ago
  4. asvid 209 times, last 7 months ago
  5. martyn 2 times, last 7 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

    No message provided

    at android.content.ContextWrapper.getSharedPreferences()
  2. Android Platform
    PreferenceManager.getDefaultSharedPreferences
    1. android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:185)
    2. android.preference.PreferenceManager.getDefaultSharedPreferences(PreferenceManager.java:369)
    2 frames
  3. com.nonexistent.rs
    main.<init>
    1. com.nonexistent.rs.guessthenumber.main.<init>(main.java:142)
    1 frame
  4. Java RT
    Class.newInstance
    1. java.lang.Class.newInstanceImpl(Native Method)
    2. java.lang.Class.newInstance(Class.java:1208)
    2 frames
  5. Android Platform
    ActivityThread.performLaunchActivity
    1. android.app.Instrumentation.newActivity(Instrumentation.java:1067)
    2. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2297)
    2 frames