Skip to content

Commit

Permalink
fix: Catch null latLng
Browse files Browse the repository at this point in the history
  • Loading branch information
percula authored and rtchagas committed Mar 30, 2020
1 parent 2957f7e commit 90b1f49
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,14 +253,15 @@ class PlacePickerActivity : AppCompatActivity(), PingKoinComponent,
clear()

for (place in places) {
place.latLng?.let {
val marker: Marker = addMarker(
MarkerOptions()
.position(it)
.icon(getPlaceMarkerBitmap(place))
)

val marker: Marker = addMarker(
MarkerOptions()
.position(place.latLng!!)
.icon(getPlaceMarkerBitmap(place))
)

marker.tag = place
marker.tag = place
}
}
}
}
Expand Down

0 comments on commit 90b1f49

Please sign in to comment.