java.lang.NullPointerException: Attempt to invoke virtual method 'int android.content.Intent.getIntExtra(java.lang.String, int)' on a null object reference

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

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 user2941841
, 1 year 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
, 11 months ago
Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference
via GitHub by thatsmoodi
, 7 months 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)

Users with the same issue

2 times, 2 months ago
5 times, 1 year ago
9 times, 1 year ago
1249 times, 1 year ago
3 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.