[android] Fixes #10563 NPE addAnnotationIcon

This commit is contained in:
hashfunction
2017-12-27 12:21:21 -08:00
committed by Tobrun
parent 0f7f4b38af
commit 580605e132

View File

@@ -321,6 +321,10 @@ public class MapView extends FrameLayout {
MapView.this.post(new Runnable() {
@Override
public void run() {
// There is no guarantee that onDestroy will not be called before the surface is created
if (destroyed) {
return;
}
// Initialise only once
if (mapboxMap == null) {
initialiseMap();