protected final void assertNotNull ( String message , Object obj ) { if ( getLog ( ) . isDebugEnabled ( ) ) { getLog ( ) . debug ( "\t(" //$NON-NLS-1$ + getLogType ( obj ) + ") " //$NON-NLS-1$ + message + " = " //$NON-NLS-1$ + obj ) ; } if ( obj == null ) { throw new AssertionError ( "assertNotNull: " + message ) ; //$NON-NLS-1$ } }
Throw an exception when the given object is null .