Consider the following code:
Example
fun main(args: Array) { maybeWriteMessage() } fun maybeWriteMessage(message:
Operator !! throws an KotlinNullPointerException if message is null.
!!
KotlinNullPointerException
message
You can read about it here: https://kotlinlang.org/docs/reference/null-safety.html#the--operator