Skip to content

Fatal Exception: java.lang.NullPointerException #272

@dzen1984

Description

@dzen1984

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions