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. ,

    Create an empty public constructor in your code.

Solutions on the web

via Stack Overflow by J Huang
, 1 year ago
Unable to start activity ComponentInfo{jhapps.com.myspending/jhapps.com.myspending.GetStarted}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via Coderanch by Naziru Gelajo, 1 year ago
Unable to start activity ComponentInfo{com.gelajo.africancurrencyconverter/com.gelajo.africancurrencyconverter.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
via GitHub by vikaskumar-vsk
, 10 months ago
Unable to start activity ComponentInfo{com.vikaskumar.vsk.buttoncumgesture/com.vikaskumar.vsk.buttoncumgesture.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 Seng
, 2 years ago
Unable to start activity ComponentInfo{com.example.project.project/com.example.project.project.TimeSheet}: 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 TeenCoder
, 2 years ago
Unable to start activity ComponentInfo{app.z0nen.menu/app.z0nen.slidemenu.MyActivity}: 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 Alex Karvouniaris
, 2 years ago
Unable to start activity ComponentInfo{com.alexkarvou.proj_1/com.alexkarvou.proj_1.MainActivity}: 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{jhapps.com.myspending/jhapps.com.myspending.GetStarted}: 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.performLaunchActivity(ActivityThread.java:2416)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)