This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
[Android] removeSource no longer (6.0.0+) safe when source does not exist #11779
Labels
Android
Mapbox Maps SDK for Android
Milestone
Platform: Android
Mapbox SDK version: 6.0.1
Steps to trigger behavior
Expected behavior
The call should succeed and return null.
Actual behavior
The call throws an NPE.
NativeMapView.java will perform the following:
getSource(sourceId)
will correctly return a null Source but the followingremoveSource(source)
call expects a non-null Source and causes an NPE when trying to get the NativePtr:This worked correctly on 5.5.2.
The text was updated successfully, but these errors were encountered: