Assert that the value is not null.

@param value   the value
@param message the message to include with any exceptions

@throws IllegalArgumentException if value is null
493710
private void assertNotNull(Object value, String message) throws IllegalArgumentException {
        if (value == null) {
            throw new IllegalArgumentException(message);
        }
    }
950351
public static function isNullOrResource($value, $message = null)
    {
        if (!is_null($value) && !is_resource($value)) {
            throw new InvalidArgumentException(sprintf(
                $message ?: 'Expected null or resource, but got %s',
                Helper::typeToString($value)
            ));
        }
    }
1047572
public function assertIsNull($value, $message='Unexpected null value: %s', $exception='Asserts')
    {
        if (is_null($value)) {
            $value = 'NULL';
            $this->throwException($exception, $message, $value);
        }
    }
1110208
private void checkForNull(String name, Object value) {
        if(name == null) {
            throw new NullPointerException("name must not be null");
        }
        if(value == null) {
            throw new NullPointerException("value must not be null");
        }
    }
90917
public static void assertFalse(boolean condition, String message) {
		if (imp != null && condition) {
			imp.assertFailed(message);
		}
	}
609436
public static function isNullOrArray($value, $message = null)
    {
        if (!is_null($value) && !is_array($value)) {
            throw new InvalidArgumentException(sprintf(
                $message ?: 'Expected null or array, but got %s',
                Helper::typeToString($value)
            ));
        }
    }
678711
public static void checkNotEmpty(CharSequence str, String message) {
    if (str == null || str.length() == 0) {
      throw new IllegalArgumentException(message);
    }
  }
116154
public static Boolean assertFalse(Boolean value, String message) {
        if (Boolean.valueOf(value))
            throw new IllegalArgumentException(message);
        return value;
    }
626728
final void add(Message message)
        throws NullPointerException {

        if (message == null) {
            throw new NullPointerException("Message can't be null");
        }

        this.messages.get(message.getLevel()).add(message);
    }
1139861
public static function isNullOrNumeric($value, $message = null)
    {
        if (!is_null($value) && !is_numeric($value)) {
            throw new InvalidArgumentException(sprintf(
                $message ?: 'Expected null or numeric, but got %s',
                Helper::typeToString($value)
            ));
        }
    }
862629
public static function isNullOrCallable($value, $message = null)
    {
        if (!is_null($value) && !is_callable($value)) {
            throw new InvalidArgumentException(sprintf(
                $message ?: 'Expected null or callable, but got %s',
                Helper::typeToString($value)
            ));
        }
    }
928330
public static <T> T checkNotNull (T value, String param)
    {
        if (value == null) {
            throw new NullPointerException("Must supply non-null '" + param + "'.");
        }
        return value;
    }
244636
public static void notNull(@Nullable Object value, String name) {
        if (value == null) {
            throw new IllegalArgumentException(name + " must not be null!");
        }
    }
750717
public static void assertTrue(@Nullable final String message, final boolean condition) {
    if (!condition) {
      final AssertionError error = new AssertionError(GetUtils.ensureNonNull(message, "Condition must be TRUE"));
      MetaErrorListeners.fireError(error.getMessage(), error);
      throw error;
    }
  }
1112005
function isNotNull(value, message, id) {
    if (message === void 0) { message = ''; }
    if (id === void 0) { id = ''; }
    if (this.enabled && value === null) {
        throw ValueException.expectedValue(assertionTypes.IS_NOT_NULL, value, null, message, id);
    }
}
49856
private void assertFieldValue(Field field, Object fieldValue) {
    if (fieldValue == null && isFieldRequired(field)) {
      throw new IllegalArgumentException("Non-nullable field " + field.getName()
          + ". This field is either annotated as REQUIRED or is a primitive type.");
    }
  }
524671
public static void assertNotNull(final Object object, final String message) {
    if (object == null) {
      throw new NullPointerException(message == null ? "Object is null" : message);
    }
  }