public static void notNull ( final Object obj , final String message ) throws IllegalArgumentException { if ( obj == null ) { throw new IllegalArgumentException ( message ) ; } }
Checks that object is not null throws exception if it is .