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

Commit

Permalink
[android] #5106 - add check for destroyed map view for addMarker()
Browse files Browse the repository at this point in the history
  • Loading branch information
tobrun committed May 26, 2016
1 parent 102e62a commit 964a6cd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,9 @@ private void ensureIconLoaded(Marker marker) {
}

long addMarker(@NonNull Marker marker) {
if(mDestroyed){
return 0l;
}
return mNativeMapView.addMarker(marker);
}

Expand Down

0 comments on commit 964a6cd

Please sign in to comment.