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 Miki P
, 1 year ago
Unable to start activity ComponentInfo{com.android.miki.rpiplantsapp/com.android.miki.rpiplantsapp.PlantStatsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.miki.rpiplantsapp.MoistureFragment.setOptimalStatText(java.lang.String)' on a null object reference
via Stack Overflow by Derek
, 1 year ago
Unable to start activity ComponentInfo{com.myapp/com.myapp.activity_host}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.myapp.MB_item.getItemId()' on a null object reference
via Stack Overflow by Esteban
, 1 year ago
Unable to start activity ComponentInfo{ui.activity.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.EditText.setText(java.lang.CharSequence)' on a null object reference
via Stack Overflow by James P
, 1 year ago
Unable to start activity ComponentInfo{com.tfs.adihub/com.tfs.adihub.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
via GitHub by jogrimst
, 1 year ago
Unable to start activity ComponentInfo{org.literacyapp.calculator/com.android.calculator2.Calculator}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.calculator2.view.MultiButton.setEnabled(int)' on a null object reference
via GitHub by tomglanville
, 9 months ago
Unable to start activity ComponentInfo{com.studygoal.jisc/com.studygoal.jisc.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.miki.rpiplantsapp/com.android.miki.rpiplantsapp.PlantStatsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.miki.rpiplantsapp.MoistureFragment.setOptimalStatText(java.lang.String)' on a null object reference	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)	at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4077)