diff --git a/android/src/ti/map/ViewProxy.java b/android/src/ti/map/ViewProxy.java index ea8026a7..a95db0f1 100644 --- a/android/src/ti/map/ViewProxy.java +++ b/android/src/ti/map/ViewProxy.java @@ -1149,11 +1149,16 @@ public float getZoom() private float handleGetZoom() { TiUIView view = peekView(); - if (view instanceof TiUIMapView) { - return ((TiUIMapView) view).getMap().getCameraPosition().zoom; - } else { - return 0; + + if (view instanceof TiUIMapView { + GoogleMap mapView = ((TiUIMapView) view).getMap(); + + if (mapView != null) { + return mapView.getCameraPosition().zoom; + } } + + return 0; } @Kroll.method