static fun <T : Any!> requireNull(object: T, @NonNull message: String): Unit
Checks if the given object is null. If the object is not null then IllegalArgumentException
is thrown with the specified message.
object
- T: will be checked if it is null
message
- String: message used for the thrown exception