shouldNotBeNull

fun <T : Any> T?.shouldNotBeNull(): T

Asserts that the receiver is not null.

Return

The non-null value.

Throws

if the value is null.