Asserts that an object is null. If it isn't an {@link AssertionError} is
thrown.
Message contains: Expected: null but was: object

@param object
Object to check or <code>null</code>
480401
static public void assertNull(Object object) {
    		String message = "Expected: <null> but was: " + String.valueOf(object);
    		assertNull(message, object);
    	}
1308697
public static boolean equalsObjects(
      @javax.annotation.Nullable Object x, @javax.annotation.Nullable Object y) {
    return x == null ? y == null : x.equals(y);
  }
1041911
public static void assertNotNull(String message, Object o) {
        if (o != null) {
            pass(message);
        } else {
            fail(message, null);
        }
    }
334327
public <T> T notNull(final T object, final String message) {
        if (object == null) {
            failNull(message);
        }
        return object;
    }
907578
public static void validateNotNull( Object object, String identifier )
        throws PostConditionException
    {
        if( object == null )
        {
            throw new PostConditionException( identifier + " was NULL." );
        }
    }
1373964
public static <T> T assertNull(T object, String message, Object... args) {
        return assertNull(object, null, message, args);
    }
734455
private boolean validateNull(Object validationObject, Annotation annotate)
    {
        if (checkNullObject(validationObject))
        {
            return true;
        }

        if (!validationObject.equals(null) || validationObject != null)
        {
            throwValidationException(((Null) annotate).message());
        }

        return true;
    }
1368573
public Object read(Object object) {
        if(object == null) {
            String msg = "Can not evaluate the identifier \"" + _identifier + "\" on a null object.";
            LOGGER.error(msg);
            throw new RuntimeException(msg);
        }

        if(TRACE_ENABLED)
            LOGGER.trace("Read property " + _identifier + " on object of type " + object.getClass().getName());

        if(object instanceof Map)
            return mapLookup((Map)object, _identifier);
        else if(object instanceof List) {
            int i = parseIndex(_identifier);
            return listLookup((List)object, i);
        }
        else if(object.getClass().isArray()) {
            int i = parseIndex(_identifier);
            return arrayLookup(object, i);
        }
        else return beanLookup(object, _identifier);
    }
484596
protected String findError(T object)
    {
        String errorMessage=null;
        if(this.errorDetectionPath!=null)
        {
            String value=this.findValue(object,this.errorDetectionPath);
            if(value!=null)
            {
                boolean errorFound=false;
                if(this.errorDetectionValue==null)
                {
                    errorFound=true;
                }
                else if(this.errorDetectionValue.indexOf(value)!=-1)    //look for value in configured value
                {
                    errorFound=true;
                }
                
                if(errorFound)
                {
                    errorMessage=value;
                    if(this.errorMessagePath!=null)
                    {
                        value=this.findValue(object,this.errorMessagePath);
                        if(value!=null)
                        {
                            errorMessage=value;
                        }
                    }
                }
            }
        }
        
        return errorMessage;
    }
26028
public static boolean isNull(Object object) {
    // don't call nullOf because will throw IllegalArgumentException if cannot create instance
    return object != null && object == NULL_CACHE.get(object.getClass());
  }
1290321
public static void error(Object obj) {
		if (obj instanceof Throwable) {
			Throwable e = (Throwable) obj;
			error(e, e.getMessage());
		} else {
			error("{}", obj);
		}
	}
1104895
public static boolean nulls(final Object... objects) {
        if (objects == null) return true;
        for (final Object object : objects) {
            if (object == null) return true;
        }
        return false;
    }
1351302
public static void checkNotNull(@Nullable Object object, @NonNull String message) {
        if (object == null) {
            throw new NullPointerException(message);
        }
    }
245267
public static <T> T assertNotNull(T object, String fieldName) throws IllegalArgumentException {
        if (object == null) {
            throw new IllegalArgumentException(String.format("%s cannot be null", fieldName));
        }
        return object;
    }
26862
public static <T> T assertNotNull(T object, String message, Object... args) {
        return assertNotNull(object, null, message, args);
    }
367327
public static Object requireNonNull(Object object, String errorMessage) {
        if (null == object) {
            throw new NullPointerException(errorMessage);
        }
        return object;
    }
151736
function(object) {
    if (!(object && object.url)) return null;
    return _.isFunction(object.url) ? object.url() : object.url;
  }