mrmans0n/smart-location-lib

Fatal Exception: java.lang.NullPointerException

dzen1984 opened this issue · 0 comments

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.Serializable android.content.Intent.getSerializableExtra(java.lang.String)' on a null object reference
at io.nlopez.smartlocation.geocoding.providers.AndroidGeocodingProvider$AndroidGeocodingService.onHandleIntent(AndroidGeocodingProvider.java:164)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)

I believe it happened on AndroidGeocodingService that extends IntentService and overrides
protected abstract void onHandleIntent(@Nullable Intent intent);
and intent value may be null if the service is being restarted after its process has gone away