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.

Crash when enabling MyBearingTracking #5331

Closed

Description

@justasm

Platform: Android
Mapbox SDK version: 4.1.0-beta.2

Steps to trigger behavior

  1. mapboxMap.getTrackingSettings().setMyBearingTrackingMode(MyBearingTracking.GPS);

or

  1. mapboxMap.getTrackingSettings().setMyBearingTrackingMode(MyBearingTracking.COMPASS);

or

  1. Open User tracking mode demo (i.e. MyLocationTrackingModeActivity) in Mapbox Android SDK TestApp.
  2. In top right dropdown, select GPS bearing or Compass bearing.

Expected behavior

Bearing tracking enabled.

Actual behavior

E/AndroidRuntime: FATAL EXCEPTION: main
                  Process: com.trafi.android.dev, PID: 24710
                  java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.animation.ValueAnimator.getAnimatedValue()' on a null object reference
                  at com.mapbox.mapboxsdk.maps.widgets.MyLocationView.onDraw(MyLocationView.java:264)
                  at android.view.View.draw(View.java:17469)
                  ... etc

Activity

  1. added a commit that references this issue on Jun 13, 2016
  2. added
    Android
    on Jun 13, 2016
  3. added a commit that references this issue on Jun 16, 2016
    a547634
  4. added this to the android-v4.1.0 milestone on Jun 16, 2016
  5. zugaldia commented on Jun 16, 2016

    @zugaldia
    Member

    Confirmed crash and fix. I just merged the PR via #5381 and the code will be available in the next Android 4.1 release.

    Thank you @justasm !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Androidcrash

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions