Assertion

suggest change

The !! suffix ignores nullability and returns a non-null version of that type. NullPointerException is thrown if the value is null.

val message: String? = null
println(message!!) // NullPointerException thrown, app crashes

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents