Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.3, 1.4
-
None
Description
ValueUtils offers a utility method to retrieve an indexed value from a collection. In case this collection is an array or a List, the method returns null if the index is above the size. If the supplied collection is a Set instead, then a NoSuchElementException is thrown if index is above size.
The desired behavior is that the result is the same for all kinds of collections and that even in the case of a Set null is returned if the index value is too large.