https://kotlinlang.org logo
#android
Title
# android
d

diego-gomez-olvera

05/22/2017, 11:50 AM
it can lead to accidental crash
d

diego-gomez-olvera

05/22/2017, 3:36 PM
I know 🙂 But the properties are generated in Kotlin, so they can be done more stricty (
@Nullable
). There is a ticket for it. https://youtrack.jetbrains.com/issue/KT-18012
k

kingsley

05/22/2017, 4:07 PM
diego-gomez-olvera: Right. Platform types like Yan said. AFAIK, it doesn't do any strict checking of whether or not that property actually exists. Also, it was once non nullable, but that was quickly relaxed. Keep in mind that the view, even if present, are only available between onviewcreated and onviewdestroyed. So they can indeed be both nullable and not
2 Views