notNull

@Contract(value = "null, _ -> fail")
fun notNull(o: Any?, message: String?)

Check that the object is not null, otherwise throw a GraphPreconditionFailure with the given message.

Parameters

o

The object o check for nullness.

message

A description of the failure.

Throws

If the object is null.