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

Commit da581cc

Browse files
LukasPaczostobrun
authored andcommitted
[android] - trying to update non-existent polyline fix #9543 (#9544)
1 parent a324442 commit da581cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/PolylineContainer.java

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public List<Polyline> addBy(@NonNull List<PolylineOptions> polylineOptionsList,
8080
public void update(Polyline polyline) {
8181
if (!isAddedToMap(polyline)) {
8282
Timber.w("Attempting to update non-added Polyline with value %s", polyline);
83+
return;
8384
}
8485

8586
nativeMapView.updatePolyline(polyline);

0 commit comments

Comments
 (0)