public static < T > T notNull ( T object , String description ) { if ( object == null ) { throw new NullPointerException ( description ) ; } return object ; }
Throws a NullPointerException if the specified object is null .