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 rayan
, 1 year ago
Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via Stack Overflow by Alex Levine
, 9 months ago
Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
via Stack Overflow by lakshmansundeep
, 1 year ago
Attempt to invoke virtual method 'android.graphics.Bitmap android.graphics.Bitmap.copy(android.graphics.Bitmap$Config, boolean)' on a null object reference
via Google Groups by Nana Zimmer, 1 year ago
Attempt to invoke virtual method 'java.lang.String com.google.android.gms.auth.api.signin.GoogleSignInAccount.getIdToken()' on a null object reference
via GitHub by FlyzZx
, 3 months ago
Attempt to invoke virtual method 'int android.media.ExifInterface.getAttributeInt(java.lang.String, int)' on a null object reference
via Stack Overflow by Linux Holic
, 10 months ago
Attempt to invoke virtual method 'android.net.Uri android.content.Intent.getData()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'void
    android.widget.Button.setOnClickListener(android.view.View$OnClickListener)'
     on a null object reference	at android.app.ActivityThread.deliverResults(ActivityThread.java:3699)	at android.app.ActivityThread.handleSendResult(ActivityThread.java:3742)