mirror of
https://github.com/ev-map/EVMap.git
synced 2026-04-29 02:24:20 -04:00
fix NPE
This commit is contained in:
@@ -548,7 +548,8 @@ class MapViewModel(application: Application, private val state: SavedStateHandle
|
||||
val apiId = apiId.value
|
||||
when (apiId) {
|
||||
"goingelectric" -> {
|
||||
val chargeCardsVal = filters.getMultipleChoiceValue("chargecards")!!
|
||||
val chargeCardsVal =
|
||||
filters.getMultipleChoiceValue("chargecards") ?: return@addSource
|
||||
filteredChargeCards.value =
|
||||
if (chargeCardsVal.all) null else chargeCardsVal.values.map { it.toLong() }
|
||||
.toSet()
|
||||
|
||||
Reference in New Issue
Block a user