Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by insidetraitor
, 1 year ago
Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.res.Resources.newTheme()' on a null object reference
via cyanogenmod.org by Unknown author, 2 years ago
Attempt to invoke virtual method 'java.lang.String android.content.ComponentName.getPackageName()' on a null object reference
via Stack Overflow by chips nomnomnom
, 1 year ago
Attempt to invoke virtual method 'android.content.SharedPreferences android.content.Context.getSharedPreferences(java.lang.String, int)' on a null object reference
via Stack Overflow by Dhrupal
, 1 year ago
Attempt to invoke virtual method 'java.lang.CharSequence android.widget.EditText.getHint()' on a null object reference
via Stack Overflow by Fredy Benavides
, 2 years ago
Attempt to invoke virtual method 'com.google.android.gms.maps.GoogleMap com.google.android.gms.maps.MapFragment.getMap()' on a null object reference
via Stack Overflow by Sam Mercer
, 2 years ago
Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference
java.lang.NullPointerException: 
    Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.res.Resources.newTheme()' on a null object reference	at android.view.ContextThemeWrapper.initializeTheme(ContextThemeWrapper.java:134)	at android.view.ContextThemeWrapper.setTheme(ContextThemeWrapper.java:85)	at android.support.v7.app.AppCompatActivity.setTheme(AppCompatActivity.java:86)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2760)