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 Bucur Mihai
, 1 year ago
Unable to start activity ComponentInfo{com.mihai_bucur.happycar/com.mihai_bucur.happycar.Documente}: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String android.content.SharedPreferences.getString(java.lang.String, java.lang.String)' on a null object reference
via Stack Overflow by Julius
, 1 year ago
Unable to start activity ComponentInfo{com.androidtutorialpoint.employeemanagementsystem/com.androidtutorialpoint.employeemanagementsystem.AddUpdateEmployee}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.Cursor
via 28im.com by Unknown author, 2 years ago
Unable to start activity ComponentInfo{com.twitter.i_droidi.mynotes/com.twitter.i_droidi.mynotes.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.Cursor android.database.sqlite.SQLiteDatabase.query
via Stack Overflow by Ahmed Ezzat Salama
, 2 years ago
Unable to start activity ComponentInfo{com.chaos.todolist/com.chaos.todolist.show}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.Cursor android.database.sqlite.SQLiteDatabase.query(java.lang.String, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String)' on a null object reference
via techjaffa.info by Unknown author, 2 years ago
Unable to start activity ComponentInfo{com.twitter.i_droidi.mynotes/com.twitter.i_droidi.mynotes.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.Cursor android.database.sqlite.SQLiteDatabase.query
via Stack Overflow by MrGlitch
, 2 years ago
Unable to start activity ComponentInfo{com.twitter.i_droidi.mynotes/com.twitter.i_droidi.mynotes.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.Cursor android.database.sqlite.SQLiteDatabase.query
java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String android.content.SharedPreferences.getString(java.lang.String, java.lang.String)' on a null object reference	at com.mihai_bucur.happycar.RemindMe.getDateRange(RemindMe.java:51)	at com.mihai_bucur.happycar.Documente.onCreate(Documente.java:69)	at android.app.Activity.performCreate(Activity.java:6289)	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2655)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2767)	at android.app.ActivityThread.access$900(ActivityThread.java:177)	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1449)	at android.os.Handler.dispatchMessage(Handler.java:102)	at android.os.Looper.loop(Looper.java:145)	at android.app.ActivityThread.main(ActivityThread.java:5951)	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:1400)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)