3 ms·
That's what Kotlin does. The only place NPEs can creep in with Kotlin code is: a) Interop with Java APIs (Kotlin doesn't force you to check every return type f
by repolfx 8y ago
That's what Kotlin does. The only place NPEs can creep in with Kotlin code is:
a) Interop with Java APIs (Kotlin doesn't force you to check every return type from a non-Kotlin call)
b) If you use !! to cast away nullness. Good Kotlin style can almost always avoid such cases.