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 SaltySea
, 1 year ago
Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference
via Stack Overflow by Unknown author, 2 years ago
Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference
via Stack Overflow by xBoLLo
, 3 months ago
Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference
via Stack Overflow by Nicolas Brugie
, 4 months ago
Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference 11-22 20:58:26.992 560-560/com.example.nico1.myapplication W/System.err:
via Stack Overflow by Alex Cass
, 2 years ago
Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference
via Stack Overflow by Sarvagya Gupta
, 2 years ago
Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference	at android.content.ContextWrapper.getApplicationContext(ContextWrapper.java:112)	at com.salty.seas.Driver.MyActivity.loadBitmap(MyActivity.java:144)	at com.salty.seas.Driver.MyActivity$1.onKeyEntered(MyActivity.java:61)	at com.firebase.geofire.GeoQuery$2.run(GeoQuery.java:126)	at android.os.Handler.handleCallback(Handler.java:739)	at android.os.Handler.dispatchMessage(Handler.java:95)	at android.os.Looper.loop(Looper.java:158)	at android.app.ActivityThread.main(ActivityThread.java:7224)	at java.lang.reflect.Method.invoke(Native Method)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)