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 Horororong
, 1 year ago
Unable to start activity ComponentInfo{org.androidtown.myjsgexample/org.androidtown.myjsgexample.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.androidtown.myjsgexample.ApplicationController.buildNetworkService(java.lang.String, int)' on a null object reference
via Stack Overflow by HIREN DIXIT
, 5 months ago
Unable to start activity ComponentInfo{}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.Toolbar.setNavigationIcon(int)' 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
via Stack Overflow by cpt
, 3 months ago
Unable to start activity ComponentInfo{Video}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.VideoView.setVideoURI(java.lang.String)' on a null object reference
via Stack Overflow by Used
, 10 months ago
Unable to start activity ComponentInfo{com.carte.alex.test3/com.carte.alex.test3.Main2Activity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.CheckedTextView.setCompoundDrawablesWithIntrinsicBounds(int, int, int, int)' on a null object reference
via Stack Overflow by Om Infowave Developers
, 4 months ago
Unable to start activity ComponentInfo{com.mypackage/com.mypackage.activities.HomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.ContentFrameLayout.setDecorPadding(int, int, int, int)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.androidtown.myjsgexample/org.androidtown.myjsgexample.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.androidtown.myjsgexample.ApplicationController.buildNetworkService(java.lang.String, int)' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)