Bug - com.google.common.collect.Iterators.limit(Iterator<FilteringMode>, int) #7316
Closed
2 tasks done
Labels
type=defect
Bug, not working as expected
Guava Version
33.2.1
Description
A "NullPointerException" can be generated by setting args[0]=null, but not described into the specification
Example
Expected Behavior
The code should throw an IllegalArgumentException.
Description in the JavaDoc: @throws IllegalArgumentException if {@code limitSize} is negative
Actual Behavior
The code generate a NullPointerException.
Packages
com.google.common.collect
Platforms
No response
Checklist
I agree to follow the code of conduct.
I can reproduce the bug with the latest version of Guava available.
The text was updated successfully, but these errors were encountered: