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


Solutions on the web17667

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

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.mycollege.mait/com.mycollege.mait.Preferences}: java.lang.NullPointerException: storage == null

Solution icon of web
Unable to start activity ComponentInfo{vn.fall.thangpq.blogreader/vn.fall.thangpq.blogreader.MainListActivity}: java.lang.NullPointerException: storage == null

Solution icon of stackoverflow
via Stack Overflow by Unknown author, 1 year ago
Unable to start activity ComponentInfo{com.niall.easytxt/com.niall.easytxt.MainActivity}: java.lang.NullPointerException: storage == null

Solution icon of stackoverflow
via Stack Overflow by keke
, 1 year ago
Unable to start activity ComponentInfo{sg.edu.nyp.stickers/sg.edu.nyp.stickers.activities.NearablesDemoActivity}: java.lang.NullPointerException: storage == null

Solution icon of stackoverflow
via Stack Overflow by Neil Rauch
, 1 year ago
Unable to start activity ComponentInfo{.MainActivity}: java.lang.NullPointerException: storage == null

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.tkk3468.androidapp/com.tkk3468.androidapp.MainActivity}: java.lang.NullPointerException: storage == null

Solution icon of github
Unable to start activity ComponentInfo{org.kontalk/org.kontalk.ui.ComposeMessage}: java.lang.NullPointerException: key == null

Solution icon of github
Unable to start activity ComponentInfo{com.money.manager.ex/com.money.manager.ex.recurring.transactions.RecurringTransactionEditActivity}: java.lang.NullPointerException: name == null

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.example.android/com.example.android.Translated}: java.lang.NullPointerException: lock == null

Stack trace

java.lang.RuntimeException: Unable to start activity ComponentInfo{sample.com.dataccess/sample.com.dataccess.MainActivity}: java.lang.NullPointerException: storage == null
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)
	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)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: java.lang.NullPointerException: storage == null
	at java.util.Arrays$ArrayList.<init>(Arrays.java:38)
	at java.util.Arrays.asList(Arrays.java:155)
	at android.widget.ArrayAdapter.<init>(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)
	... 10 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

3 times, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 times, 1 month ago
2 times, 1 year ago
95 times, 1 year ago
20 more bugmates