public static void NPE ( Object o1 , Object o2 , Object o3 , Object ... objects ) { NPE ( o1 , o2 , o3 ) ; for ( Object o : objects ) { if ( null == o ) { throw new NullPointerException ( ) ; } } }
Throw out NullPointerException if any one of the passed objects is null .