m

    ms

    1 year ago
    Has anyone facing NPE with
    MutableStateFlow
    ? using Compose beta06 Details in 🧵
    private val searchAppFlow = MutableStateFlow("")
    val appsFlow: Flow<List<App>>
        get() = appDrawerRepo.allAppsFlow.combine(hiddenAppsRepo.onlyHiddenAppsFlow) { allApps, hiddenApps ->
            allApps.minus(hiddenApps)
        }.combine(searchFlow) { filteredApps, query ->
            when {
                query.isNotEmpty() -> filteredApps.filter {
                    it.name.startsWith(
                        query,
                        ignoreCase = true
                    )
                }
                else -> filteredApps
            }
        }
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    1 year ago
    What’s the stack trace?
    m

    ms

    1 year ago
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    1 year ago
    Just guessing, are you sure
    onlyHiddenAppsFlow
    isn’t null?
    m

    ms

    1 year ago
    NO, I verified that !!!