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 soccerway
, 1 year ago
Attempt to invoke virtual method 'int android.content.Context.checkPermission(java.lang.String, int, int)' on a null object reference
via Stack Overflow by KYOSEON LEE
, 2 years ago
Attempt to invoke virtual method 'int android.content.Context.checkPermission(java.lang.String, int, int)' on a null object reference
via Stack Overflow by ruhinaaz Ms
, 2 months ago
Attempt to invoke virtual method 'int android.content.Context.checkPermission(java.lang.String, int, int)' on a null object reference
via Stack Overflow by carlosx2
, 1 year ago
Attempt to invoke virtual method 'int android.content.Context.checkPermission(java.lang.String, int, int)' on a null object reference
via Stack Overflow by B. Bob
, 1 year ago
Attempt to invoke virtual method 'int android.content.Context.checkPermission(java.lang.String, int, int)' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.content.Context.checkPermission(java.lang.String, int, int)' on a null object reference	at android.content.ContextWrapper.checkPermission(ContextWrapper.java:637)	at android.support.v4.content.ContextCompat.checkSelfPermission(ContextCompat.java:387)	at com.mycompany.myfirstglapp.GPSTracker.getLocation(GPSTracker.java:133)	at com.mycompany.myfirstglapp.GPSTracker.(GPSTracker.java:62)	at com.mycompany.myfirstglapp.MainActivity.onCreate(MainActivity.java:102)	at android.app.Activity.performCreate(Activity.java:6237)	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)