java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' 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 Bahamit
, 1 year ago
Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference
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
via Stack Overflow by Prashant Pujar
, 1 month ago
Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference 08-14 19:43:41.833: E/AndroidRuntime(31363):
via Stack Overflow by Jayce
, 3 months ago
Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference
via Stack Overflow by Matthew Collins
, 1 year 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 biz.tanners.geo_x.LocationClass.GETLOCATION(LocationClass.java:49)

Users with the same issue

3 times, 9 months ago
2 times, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
3 more bugmates

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