java.lang.RuntimeException: Unable to start activity ComponentInfo{sample.com.dataccess/sample.com.dataccess.MainActivity}: java.lang.NullPointerException: storage == null

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 madhu
, 10 months ago
Unable to start activity ComponentInfo{sample.com.dataccess/sample.com.dataccess.MainActivity}: java.lang.NullPointerException: storage == null
via Stack Overflow by keke
, 2 years ago
Unable to start activity ComponentInfo{sg.edu.nyp.stickers/sg.edu.nyp.stickers.activities.NearablesDemoActivity}: java.lang.NullPointerException: storage == null
via Stack Overflow by Anshul Garg
, 1 year ago
Unable to start activity ComponentInfo{com.mycollege.mait/com.mycollege.mait.Preferences}: java.lang.NullPointerException: storage == null
via teamtreehouse.com by Unknown author, 1 year ago
Unable to start activity ComponentInfo{vn.fall.thangpq.blogreader/vn.fall.thangpq.blogreader.MainListActivity}: java.lang.NullPointerException: storage == null
via Stack Overflow by Unknown author, 2 years ago
Unable to start activity ComponentInfo{com.niall.easytxt/com.niall.easytxt.MainActivity}: java.lang.NullPointerException: storage == null
via Stack Overflow by Neil Rauch
, 1 year ago
Unable to start activity ComponentInfo{.MainActivity}: java.lang.NullPointerException: storage == null
java.lang.NullPointerException: storage == null
at java.util.Arrays$ArrayList.(Arrays.java:38)
at java.util.Arrays.asList(Arrays.java:155)
at android.widget.ArrayAdapter.(ArrayAdapter.java:128)
at sample.com.dataccess.MainActivity.onCreate(MainActivity.java:47)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
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:903)

Users with the same issue

4 times, 3 months ago
3 times, 6 months ago
2 times, 1 year ago
95 times, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.