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 Asad Aizaz
, 1 year ago
Unable to start activity ComponentInfo{com.asad.android.canieatthis/com.asad.android.canieatthis.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.asad.android.canieatthis.Food.getUpc()' on a null object reference
via GitHub by ethan92429
, 1 year ago
Unable to start activity ComponentInfo{org.post.aguaclara.postdose/org.post.aguaclara.postdose.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
via GitHub by ecgreb
, 1 year ago
Unable to start activity ComponentInfo{com.mapzen.erasermap/com.mapzen.erasermap.controller.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.mapzen.erasermap.model.ApiKeys.getRoutingKey()' on a null object reference
via Stack Overflow by bdpolinsky
, 1 year ago
Unable to start activity ComponentInfo{com.example.barry.recordtracker/com.example.barry.recordtracker.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example.barry.recordtracker.DataBaseHelper.databaseToString()' on a null object reference
via Stack Overflow by Yuval Eliav
, 1 year ago
Unable to start activity ComponentInfo{com.yuvaleliav1gmail.foodchain/com.yuvaleliav1gmail.foodchain.Add_Comment_Picture}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference
via Stack Overflow by LBJ33
, 1 year ago
Unable to start activity ComponentInfo{com.bestworkouts.sheikoworkout/com.bestworkouts.sheikoworkout.WorkoutDaysActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.asad.android.canieatthis.Food.getUpc()' on a null object reference	at com.asad.android.canieatthis.MainActivity.onCreate(MainActivity.java:62)	at android.app.Activity.performCreate(Activity.java:6876)	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)