public static void notNull ( final Object object , final String objectName ) { if ( object == null ) { throw new IllegalArgumentException ( "expecting non-null value for " + maskNullArgument ( objectName ) ) ; } }
Throw a null pointer exception if object is null