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

    Null pointer when setting text/background on android app

    Stack Overflow | 3 years ago | Alissa
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.telehealthcaresolutions.virtualphysical/com.telehealthcaresolutions.virtualphysical.ExamActivity}: java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Sliding menu listeners

    Stack Overflow | 4 years ago | Rakeeb Rajbhandari
    java.lang.NullPointerException

    1 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
      ContextWrapper.getSharedPreferences
      1. android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:185)
      1 frame
    3. com.nonexistent.rs
      main.<init>
      1. com.nonexistent.rs.guessthenumber.main.<init>(main.java:141)
      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