Project

Profile

Help

Revision 7a1eaf8b

Added by O'Neil Delpratt about 1 year ago

Bug fix in iterator method of IteratorWrapper

View differences:

latest10/hej/net/sf/saxon/om/IteratorWrapper.java
23 23
    /**
24 24
     * Get the next item in the Iterator
25 25
     *
26
     * @return the next item in the iterator
26
     * @return the next item in the iterator, or null if there are no more items. Once a call
27
     * on next() has returned null, no further calls should be made.
27 28
     */
28 29
    @Override
29 30
    public Item next() throws XPathException {
30
        return iterator.next();
31
        return iterator.hasNext() ? iterator.next() : null;
31 32
    }
32 33
}
33 34

  

Also available in: Unified diff