Skip to content

Commit a6c5a5e

Browse files
committed
fix: snippet
1 parent 13227e4 commit a6c5a5e

File tree

1 file changed

+1
-1
lines changed
  • snippets/app-utils-ktx/src/main/java/com/example/app_utils_ktx

1 file changed

+1
-1
lines changed

snippets/app-utils-ktx/src/main/java/com/example/app_utils_ktx/Heatmaps.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ internal class Heatmaps {
4949

5050
// Create a heat map tile provider, passing it the latlngs of the police stations.
5151
val provider = HeatmapTileProvider.Builder()
52-
.data(latLngs)
52+
.data(latLngs?.filterNotNull() ?: emptyList())
5353
.build()
5454

5555
// Add a tile overlay to the map, using the heat map tile provider.

0 commit comments

Comments
 (0)