Details
-
Bug
-
Resolution: Fixed
-
Minor
-
5.4.5
-
None
-
Unknown
-
N/A
-
N/A
-
Description
The specification of Iterator indicates that next() should throw a NoSuchElementException when there is no element left. DatabaseDocumentIterator and SolrDocumentIterator assume they simple won't be called in that case and behave as if there was always an element left (in practice it will produce a IndexOutOfBoundsException with current code).