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 Lalinda Sampath
, 1 year ago
Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference
via google.com by Unknown author, 2 years ago
Attempt to invoke virtual method `android.content.res.Resources$Theme android.content.Context.getTheme()` on a null object reference
via xamarin.com by Unknown author, 2 years ago
Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference
via xamarin.com by Unknown author, 2 years ago
Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference
via GitHub by davis123123
, 11 months ago
Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference
via Stack Overflow by Thormgrim
, 1 year ago
Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference	at android.app.AlertDialog.resolveDialogTheme(AlertDialog.java:154)	at android.app.AlertDialog$Builder.(AlertDialog.java:379)	at com.example.lsdias.testgps.GPSTracker.showSettingsAlert(GPSTracker.java:240)	at com.example.lsdias.testgps.GPSTracker$1.onClick(GPSTracker.java:155)	at android.view.View.performClick(View.java:4756)	at android.view.View$PerformClick.run(View.java:19749)	at android.os.Handler.handleCallback(Handler.java:739)	at android.os.Handler.dispatchMessage(Handler.java:95)	at android.os.Looper.loop(Looper.java:135)	at android.app.ActivityThread.main(ActivityThread.java:5221)	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:899)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)