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 Praveenks
, 1 year ago
Unable to start activity ComponentInfo{com.myapp.praveen.healthcareit/com.myapp.praveen.healthcareit.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setOnItemClickListener(android.widget.AdapterView$OnItemClickListener)' on a null object reference
via Stack Overflow by Praveenks
, 1 year ago
Unable to start activity ComponentInfo{com.myapp.praveen.healthcareit/com.myapp.praveen.healthcareit.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setOnItemClickListener(android.widget.AdapterView$OnItemClickListener)' on a null object reference
via Stack Overflow by Peter Nischler
, 1 year ago
Unable to start activity ComponentInfo{com.example.peter.myapplication/com.example.peter.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Spinner.setOnItemSelectedListener(android.widget.AdapterView$OnItemSelectedListener)' on a null object reference
via Stack Overflow by Runesen
, 6 months ago
Unable to start activity ComponentInfo{com.example.rune.shinycalculator/com.example.rune.shinycalculator.gen2}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Spinner.setOnItemSelectedListener(android.widget.AdapterView$OnItemSelectedListener)' on a null object reference
via Stack Overflow by Noah Tanenholtz
, 1 year ago
Unable to start activity ComponentInfo{com.technologyfortomorrow.animalyze/com.technologyfortomorrow.animalyze.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.hardware.Camera.release()' on a null object reference
via xiaomi.eu by Unknown author, 1 year ago
Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.preference.Preference.onPrepareForRemoval()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setOnItemClickListener(android.widget.AdapterView$OnItemClickListener)' on a null object reference	at com.myapp.praveen.healthcareit.MainActivity.onCreate(MainActivity.java:95)	at android.app.Activity.performCreate(Activity.java:6259)	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)