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

  1. ,
    via Stack Overflow by CommonsWare

    Try loading the text file into a WebView, then printing the contents of the WebView.

Solutions on the web

via Stack Overflow by Shailender Narang
, 1 year ago
Unable to start activity ComponentInfo{}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via Stack Overflow by Ariel Gal
, 1 year ago
Unable to start activity ComponentInfo{com.lagistos.memalela/com.lagistos.memalela.MainTeacher}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via Stack Overflow by Dheeraj Vuppuluri
, 2 years ago
Unable to start activity ComponentInfo{database.fab/database.fab.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via GitHub by DHGHH
, 1 year ago
Unable to start activity ComponentInfo{com.bbk.app.main/com.bbk.hh.app.mine.MineActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via Stack Overflow by carlos1990
, 2 years ago
Unable to start activity ComponentInfo{com.cm.georganizer/com.cm.georganizer.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via Stack Overflow by Unknown author, 2 years ago
Unable to start activity ComponentInfo{com.example.barun.myapplication/com.example.barun.myapplication.TextPlay}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2316)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2376)	at android.app.ActivityThread.access$800(ActivityThread.java:147)	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1281)	at android.os.Handler.dispatchMessage(Handler.java:102)	at android.os.Looper.loop(Looper.java:135)	at android.app.ActivityThread.main(ActivityThread.java:5253)	at java.lang.reflect.Method.invoke(Native Method)	at java.lang.reflect.Method.invoke(Method.java:372)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)