Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. ContextThemeWrapper.getResources() has thrown a NullPointerException
    Android
    50
    1
    0
  2. ContextWrapper.getResources() has thrown a NullPointerException
    Android
    115
    2
    1

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
    at android.content.ContextWrapper.getResources(ContextWrapper.java:85)
    at android.view.ContextThemeWrapper.getResources(ContextThemeWrapper.java:74)

External results for this pattern (10)

  1. Jerryq27via Stack Overflow5 months ago
    Unable to instantiate activity ComponentInfo{edu.calpoly.android.lab2/edu.calpoly.android.lab2.SimpleJokeList}: java.lang.NullPointerException
    Show stack trace
  2. Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
    Show stack trace
  3. Lazar Kvia Stack Overflow5 months ago
    Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
    Show stack trace
  4. NCavinsvia Stack Overflow5 months ago
    Unable to instantiate activity ComponentInfo{com.example.geoquizlab1solution/com.example.geoquizlab1solution.HomeScreen}: java.lang.NullPointerException
    Show stack trace
  5. Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
    Show stack trace
  6. J. Arnoldvia Stack Overflow5 months ago
    Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
    Show stack trace
  7. Giantvia Stack Overflow5 months ago
    Unable to instantiate activity ComponentInfo{com.afield.numpad/com.afield.numpad.MainActivity}: java.lang.NullPointerException
    Show stack trace
  8. Unknown authorvia xamarin.com5 months ago
    No message found for this stack trace.
    Show stack trace
  9. Vali79via Stack Overflow5 months ago
    No message found for this stack trace.
    Show stack trace
  10. Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
    Show stack trace