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 President Camacho
, 1 year ago
Unable to start activity ComponentInfo{benlab.app1ben/benlab.app1ben.game_page}: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.Random.nextInt()' on a null object reference
via GitHub by barbeau
, 1 year ago
Unable to start activity ComponentInfo{com.joulespersecond.seattlebusbot/org.onebusaway.android.ui.HomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int org.onebusaway.android.ui.AlertList.getCount()' on a null object reference
via Stack Overflow by Ricardo Amaya
, 6 months ago
Unable to start activity ComponentInfo{com.ramaya947yahoo.mymaps/com.ramaya947yahoo.mymaps.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.google.android.gms.maps.GoogleMap.getMapType()' on a null object reference
via google.com by Unknown author, 1 year ago
Unable to start activity ComponentInfo{com.alwaysorg.chatfoss/com.codelegs.ao.ui.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.ContentFrameLayout.setDecorPadding(int, int, int, int)' on a null object reference
via Stack Overflow by shyamyy
, 1 year ago
Unable to start activity ComponentInfo{notebookdata.mycalltaxi.notebook/notebookdata.mycalltaxi.notebook.CarSelectActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.content.Context.checkPermission(java.lang.String, int, int)' on a null object reference
via Stack Overflow by sona
, 1 year ago
Unable to start activity ComponentInfo{com.mhs.myapplication/com.mhs.myapplication.Main2Activity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.mhs.myapplication.LabelledSpinner.setItemsArray(int)' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.Random.nextInt()' on a null object reference	at benlab.app1ben.game_page.newProblem(game_page.java:47)	at benlab.app1ben.game_page.onCreate(game_page.java:33)	at android.app.Activity.performCreate(Activity.java:6285)	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2524)	at android.app.ActivityThread.access$900(ActivityThread.java:154)	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1391)	at android.os.Handler.dispatchMessage(Handler.java:102)	at android.os.Looper.loop(Looper.java:234)	at android.app.ActivityThread.main(ActivityThread.java:5526)	at java.lang.reflect.Method.invoke(Native Method)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)