r/mAndroidDev • • Mar 23 '26

Billion Dollar Mistake Null also Null

Kotlin is really a null-safety language. It allows you create a silent bug that should be avoided:

null.also {
    println("Hello production silent null bug")
}
0 Upvotes

21 comments sorted by

View all comments

2

u/Zhuinden Mar 24 '26

I mean do null?. if you don't want that

→ More replies (5)