Skip to content

Commit

Permalink
r2507: remove marker: Attempt to invoke virtual method 'void com.goog…
Browse files Browse the repository at this point in the history
…le.android.gms.maps.model.setIcon(com.google.android.gms.maps.model.BitmapDescription)' on a null object reference #: remove marker: Attempt to invoke virtual method 'void com.google.android.gms.maps.model.setIcon(com.google.android.gms.maps.model.BitmapDescription)' on a null object reference (#2555)

* null check is enough
  • Loading branch information
salah-ghanim authored and rborn committed Oct 22, 2018
1 parent 5180a93 commit b870c0b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,9 @@ public void updateMarkerIcon() {
// No more updates for this, as it's a simple icon
hasViewChanges = false;
}

marker.setIcon(getIcon());
if (marker != null) {
marker.setIcon(getIcon());
}
}

public LatLng interpolate(float fraction, LatLng a, LatLng b) {
Expand Down

0 comments on commit b870c0b

Please sign in to comment.