Loading... (original) (raw)

FULL PRODUCT VERSION :

A DESCRIPTION OF THE PROBLEM :
There are couple of places where null checks are missing

(Int/Long/Double/)Stream.close
Int/Double/LongStream.flatmap
Int/Double/LongStream.collect(x,y, 3rd) 3rd argument not being checked

Also these methods does throw NPE but they consume the stream before throwing.
I like to think of null parameter checks as side-effect free.

Stream.forEach
Stream.forEachOrdered
Stream.sorted
Stream.toArray

REPRODUCIBILITY :
This bug can be reproduced always.