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 sesy
, 1 year ago
Attempt to invoke virtual method 'void android.view.View.setBackgroundResource(int)' on a null object reference
via GitHub by fahimk
, 2 years ago
Attempt to invoke virtual method 'void android.view.View.setBackgroundResource(int)' on a null object reference
via GitHub by javiersantos
, 1 year ago
Attempt to invoke virtual method 'void com.afollestad.materialdialogs.internal.MDButton.setVisibility(int)' on a null object reference
via Stack Overflow by notchopra
, 2 years ago
Attempt to invoke virtual method 'void android.widget.TextView.setText(int)' on a null object reference
via Stack Overflow by Eloise Boatto
, 2 months ago
Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setDisplayOptions(int)' on a null object reference
via Stack Overflow by hastati
, 1 year ago
Attempt to invoke virtual method 'int android.content.Intent.getIntExtra(java.lang.String, int)' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setBackgroundResource(int)' on a null object reference	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2426)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)