You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Race condition patched up in the #13203 introduced/exposed another bug - instead of marking map as initialized when MapboxMap object is created, we should do that at the end of the initialization block, to not deliver the onMapReady prematurely.
This can lead to crashes like
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.mapbox.mapboxsdk.maps.MapGestureDetector.addOnMapClickListener(com.mapbox.mapboxsdk.maps.MapboxMap$OnMapClickListener)' on a null object reference
at com.mapbox.mapboxsdk.maps.MapView$GesturesManagerInteractionListener.onAddMapClickListener(MapView.java:1420)
at com.mapbox.mapboxsdk.maps.MapboxMap.addOnMapClickListener(MapboxMap.java:2133)
at com.mapbox.mapboxsdk.testapp.activity.maplayout.DoubleMapActivity$DoubleMapFragment.lambda$onViewCreated$1$DoubleMapActivity$DoubleMapFragment(DoubleMapActivity.java:100)
at com.mapbox.mapboxsdk.testapp.activity.maplayout.DoubleMapActivity$DoubleMapFragment$$Lambda$0.onMapReady(Unknown Source:2)
at com.mapbox.mapboxsdk.maps.MapView$MapCallback.onMapReady(MapView.java:1602)
at com.mapbox.mapboxsdk.maps.MapView$MapCallback.initialise(MapView.java:1591)
at com.mapbox.mapboxsdk.maps.MapView.initialiseMap(MapView.java:181)
at com.mapbox.mapboxsdk.maps.MapView.access$800(MapView.java:76)
at com.mapbox.mapboxsdk.maps.MapView$6.run(MapView.java:336)
The text was updated successfully, but these errors were encountered:
Race condition patched up in the #13203 introduced/exposed another bug - instead of marking map as initialized when
MapboxMap
object is created, we should do that at the end of the initialization block, to not deliver theonMapReady
prematurely.This can lead to crashes like
The text was updated successfully, but these errors were encountered: