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

  * null check is enough
  • Loading branch information
SalahAldin Ghanim committed Oct 18, 2018
1 parent fc3cf88 commit 0d353a6
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 0d353a6

Please sign in to comment.