diff --git a/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java b/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java index 303ccd9daf8..ed2038c2401 100644 --- a/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java +++ b/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java @@ -1654,7 +1654,9 @@ private void updateMap() { } */ } else { - mGpsMarker.setVisibility(View.INVISIBLE); + if (mGpsMarker != null) { + mGpsMarker.setVisibility(View.INVISIBLE); + } } } }