Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.4
-
None
-
jackrabbit-ocm-1.4-20071210.145858-1
java version "1.5.0_13"
Description
When a query returns no objects, ObjectContentManagerImpl.getObject(Query) throws the following exception:
java.util.NoSuchElementException
at java.util.AbstractList$Itr.next(AbstractList.java:427)
at org.apache.jackrabbit.ocm.manager.impl.ObjectContentManagerImpl.getObject(ObjectContentManagerImpl.java:538)
Javadocs for ObjectContentManager interface suggest that a ObjectContentManagerException should be thrown in this case.