An OAI-PMH ListRecords response may be split up in several resumptive responses.
The ResponseIterator has built-in support for such resumptive responses. But the implementation of 'hasNext()' is erroneous: Only the existens of a resumption token is checked but not if a further request would return any more nodes. This leads to an invalid state where 'hasNext()' is returning true but the next call to 'next()' returns 'null'.
There has been a commit made but appears to have been retracted. What's the status Basil? I can work on this ticket.
James, I've attached the patch from our local repository. I don't have time to do more tests at the moment. But feel free to get back to me if you have any questions about it.