mirror of
https://github.com/ev-map/EVMap.git
synced 2026-04-29 02:24:20 -04:00
fix NPE in EnBwAvailabilityDetector
This commit is contained in:
@@ -149,9 +149,9 @@ class EnBwAvailabilityDetector(client: OkHttpClient, baseUrl: String? = null) :
|
||||
markers = listOf(nearest)
|
||||
}
|
||||
|
||||
val details = markers.map {
|
||||
val details = markers.mapNotNull { it.stationId }.map {
|
||||
// load details
|
||||
api.getLocation(it.stationId!!)
|
||||
api.getLocation(it)
|
||||
}
|
||||
|
||||
val connectorStatus = details.flatMap { it.chargePoints }.flatMap { cp ->
|
||||
|
||||
Reference in New Issue
Block a user