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 张林周
, 11 months ago
Unable to start activity ComponentInfo{。。.HomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.indexOf(java.lang.Object)' on a null object reference
via GitHub by githubdoramon
, 2 years ago
Unable to start activity ComponentInfo{com.fleeber/com.fleeber.main.MainActivity_}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.util.SparseArray.get(int)' on a null object reference
via GitHub by galadril
, 2 years ago
Unable to start activity ComponentInfo{nl.hnogames.domoticz.premium/nl.hnogames.domoticz.ServerSettingsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int nl.hnogames.domoticz.Utils.SharedPrefUtil.getStartupScreenIndex()' on a null object reference
via Stack Overflow by alireza_fn
, 1 year ago
Unable to start activity ComponentInfo{bertaberim.team.beertaberim/bertaberim.team.beertaberim.ItemActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.ViewGroup.getPaddingLeft()' on a null object reference
via Stack Overflow by Diksha
, 7 months ago
Unable to start activity ComponentInfo{com.example.acer.mylocationmap/com.example.acer.mylocationmap.DisplayStorageActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'void java.util.List.add(int, java.lang.Object)' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{。。.HomeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.indexOf(java.lang.Object)' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2587) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2659) at android.app.ActivityThread.access$1000(ActivityThread.java:169) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1467) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:159) at android.app.ActivityThread.main(ActivityThread.java:5671) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.indexOf(java.lang.Object)' on a null object reference at android.support.v4.app.FragmentManagerImpl.findFragmentUnder(FragmentManager.java:2331) at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1532) at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:753) at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2363) at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2149) at android.support.v4.app.FragmentManagerImpl.optimizeAndExecuteOps(FragmentManager.java:2103) at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2013) at android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:388) at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:607) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1236) at android.app.Activity.performStart(Activity.java:6172) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2518) ... 10 more