java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.wonkydan.inventoryapp/com.example.wonkydan.inventoryapp.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase com.example.wonkydan.inventoryapp.InventoryDatabase.getReadableDatabase()' on a null object reference

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 Daniel Gregory
, 1 year ago
Unable to start activity ComponentInfo{com.example.wonkydan.inventoryapp/com.example.wonkydan.inventoryapp.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase com.example.wonkydan.inventoryapp.InventoryDatabase.getReadableDatabase()' on a null object reference
via Stack Overflow by Adamc79
, 2 years ago
Unable to start activity ComponentInfo{com.example.eagle.sqlite2activitytest/com.example.eagle.sqlite2activitytest.SecondActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase com.example.eagle.sqlite2activitytest.CustomOpenHelper.getReadableDatabase()' on a null object reference
via Stack Overflow by Martin
, 11 months ago
Unable to start activity ComponentInfo{com.example.martin.xxx/com.example.martin.xxx.AddWallet}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase Database.DatabaseHelper.getReadableDatabase()' on a null object reference
via 28im.com by Unknown author, 2 years ago
Unable to start activity ComponentInfo{com.example.eagle.sqlite2activitytest/com.example.eagle.sqlite2activitytest.SecondActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase com.example.eagle.sqlite2activitytest.CustomOpenHelper.getReadableDatabase()' on a null object reference
via fatal-errors.com by Unknown author, 2 years ago
Unable to start activity ComponentInfo{com.example.eagle.sqlite2activitytest/com.example.eagle.sqlite2activitytest.SecondActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase com.example.eagle.sqlite2activitytest.CustomOpenHelper.getReadableDatabase()' on a null object reference
via Stack Overflow by RupaRupa
, 1 year ago
Unable to start activity ComponentInfo{com.example.rpholmes.digibottle/com.example.rpholmes.digibottle.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.wonkydan.inventoryapp/com.example.wonkydan.inventoryapp.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase com.example.wonkydan.inventoryapp.InventoryDatabase.getReadableDatabase()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)

Users with the same issue

8 times, 1 month ago
Samebug visitor profile picture
Unknown user
2 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
12 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
109 more bugmates

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