I'm getting:
Caused by: java.lang.NullPointerException
at android.content.ContextWrapper.getSystemService(ContextWrapper.java:423)
when the app:
locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
The code which throws the exceptions is:
421: @Override
422: public void grantUriPermission(String toPackage, Uri uri, int modeFlags) {
423: mBase.grantUriPermission(toPackage, uri, modeFlags);
424: }
(The debugger shows mBase
as being null in the call.)
I have checked:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
and debugged:
context={MyService@830033501600}
Any ideas?