sdk-common / com.tomtom.online.sdk.common.util / Preconditions / requireNull

requireNull

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.

Parameters

object - T: will be checked if it is null

message - String: message used for the thrown exception

Exceptions

IllegalArgumentException - thrown if the object is not null