What is the Kotlin double-bang (!!) operator?

This is unsafe nullable type (T?) conversion to a non-nullable type (T),
!! will throw NullPointerException if the value is null.

It is documented here along with Kotlin means of null-safety.

Leave a Comment