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 hastati
, 1 year ago
Attempt to invoke virtual method 'int android.content.Intent.getIntExtra(java.lang.String, int)' on a null object reference
via Stack Overflow by Axium
, 3 months 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 user2941841
, 2 years ago
Attempt to invoke virtual method 'int android.telephony.CellSignalStrength.getLevel()' 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 GitHub by fahimk
, 2 years ago
Attempt to invoke virtual method 'void android.view.View.setBackgroundResource(int)' on a null object reference
via Stack Overflow by HERIUN
, 1 year ago
Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.content.Intent.getIntExtra(java.lang.String, int)' on a null object reference	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2327)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)