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 Jeyahariprakash
, 1 year ago
Unable to start activity ComponentInfo{com.hari.sample/com.hari.sample.ui.activity.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'mortar.MortarScope mortar.MortarScope.findChild(java.lang.String)' on a null object reference
via GitHub by cjx3711
, 10 months ago
Unable to start activity ComponentInfo{com.chaijiaxun.pm25tracker/com.chaijiaxun.pm25tracker.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.activeandroid.TableInfo.getTableName()' on a null object reference
via GitHub by hzy87email
, 1 year ago
Unable to start activity ComponentInfo{com.jason.loggertest/com.jason.loggertest.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Throwable.getMessage()' on a null object reference
via Stack Overflow by Lotse
, 1 year ago
Unable to start activity ComponentInfo{com.itemlocator.findit/com.itemlocator.findit.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.widget.EditText.toString()' on a null object reference
via Stack Overflow by Adit R
, 1 year ago
Unable to start activity ComponentInfo{com.example.rcadit.foodgenie/com.example.rcadit.foodgenie.resultActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
via GitHub by jjhesk
, 1 year ago
Unable to start activity ComponentInfo{****}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.loopj.android.http.AsyncHttpClient.addHeader(java.lang.String, java.lang.String)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.hari.sample/com.hari.sample.ui.activity.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'mortar.MortarScope mortar.MortarScope.findChild(java.lang.String)' on a null object reference	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)