diff --git a/android/src/main/java/com/rnmapbox/rnmbx/components/camera/CameraUpdateItem.kt b/android/src/main/java/com/rnmapbox/rnmbx/components/camera/CameraUpdateItem.kt index 6b18caa34..faa212637 100644 --- a/android/src/main/java/com/rnmapbox/rnmbx/components/camera/CameraUpdateItem.kt +++ b/android/src/main/java/com/rnmapbox/rnmbx/components/camera/CameraUpdateItem.kt @@ -76,10 +76,11 @@ class CameraUpdateItem( } } val map = mMap.get() - if (map == null) { + if (map == null || mCameraUpdate.center == null) { isCameraActionCancelled = true return } + val animationOptions = MapAnimationOptions.Builder(); // animateCamera / easeCamera only allows positive duration