https://kotlinlang.org logo
f

forcelain

08/23/2016, 12:44 PM
Copy code
override fun getApps(): List<App> {
        return retrofit
                .getApps()
                .map { appMapper.map(it) }
                .filter { it != null }
    }
Type inference failed. Required List<App>, found List<App?> Any idea how to filter out nulls from the list without changing the method signature?