Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Error receiving broadcast Intent: com.mapbox.mapboxsdk.telemetry.TelemetryLocationReceiver #6934

Closed

Description

@mrfaa

Platform: Android 6.0.1 , Nexus 4
Mapbox SDK version: com.mapbox.mapboxsdk:mapbox-android-sdk:4.1.1@aar

Steps to trigger behavior

Random Bug.

Crash report

Fatal Exception: java.lang.RuntimeException: Error receiving broadcast Intent { act=com.mapbox.mapboxsdk.telemetry.TelemetryLocationReceiver flg=0x10 pkg=XXX } in com.mapbox.mapboxsdk.telemetry.TelemetryLocationReceiver@6fe5dee
       at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:891)
       at android.os.Handler.handleCallback(Handler.java:739)
       at android.os.Handler.dispatchMessage(Handler.java:95)
       at android.os.Looper.loop(Looper.java:148)
       at android.app.ActivityThread.main(ActivityThread.java:5420)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.os.Bundle.get(java.lang.String)' on a null object reference
       at com.mapbox.mapboxsdk.telemetry.TelemetryLocationReceiver.onReceive(TelemetryLocationReceiver.java:64)
       at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:881)
       at android.os.Handler.handleCallback(Handler.java:739)
       at android.os.Handler.dispatchMessage(Handler.java:95)
       at android.os.Looper.loop(Looper.java:148)
       at android.app.ActivityThread.main(ActivityThread.java:5420)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Activity

  1. tobrun commented on Nov 7, 2016

    @tobrun
    Member

    Seems that we are not null checking the incoming intent or the related bundle,
    thank you for reporting @mrfaa!

  2. added
    Android
    on Nov 7, 2016
  3. self-assigned this
    on Nov 7, 2016
  4. added this to the android-v4.2.0 milestone on Nov 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Android

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions