question: public void testAddAll3 ( ) { try { LinkedBlockingQueue q = new LinkedBlockingQueue ( SIZE ) ; Integer [ ] ints = new Integer [ SIZE ] ; for ( int i = 0 ; i < SIZE - 1 ; ++ i ) ints [ i ] = new Integer ( i ) ; q . addAll ( Arrays . asList ( ints ) ) ; shouldThrow ( ) ; } catch ( NullPointerException success ) { } }
target:  addAll of a collection with any null elements throws NPE after possibly adding some elements