question: public void testTimedInvokeAnyNullTimeUnit ( ) throws Throwable { ExecutorService e = new ForkJoinPool ( 1 ) ; PoolCleaner cleaner = null ; try { cleaner = cleaner ( e ) ; List < Callable < String > > l = new ArrayList < Callable < String > > ( ) ; l . add ( new StringTask ( ) ) ; try { e . invokeAny ( l , MEDIUM_DELAY_MS , null ) ; shouldThrow ( ) ; } catch ( NullPointerException success ) { } } finally { if ( cleaner != null ) { cleaner . close ( ) ; } } }
target:  timed invokeAny(null time unit) throws NullPointerException