Skip to content

Commit

Permalink
Added else if statement in setMarkerInfoWindow in KmlRenderer for nul…
Browse files Browse the repository at this point in the history
…l exception bug fix. (#330)
  • Loading branch information
Libby713 authored and stephenmcd committed Dec 4, 2016
1 parent 3cba85f commit 0d92651
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/src/com/google/maps/android/kml/KmlRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,9 @@ private void setMarkerInfoWindow(KmlStyle style, Marker marker,
} else if (hasDescription) {
marker.setTitle(placemark.getProperty("description"));
createInfoWindow();
} else if (hasName) {
marker.setTitle(placemark.getProperty("name"));
createInfoWindow();
}
}

Expand Down

0 comments on commit 0d92651

Please sign in to comment.