Project

Profile

Help

Is a NullPointerException on pulling a potentially very large uri collection with e.g. `uri-collection('file:/?recurse=yes;select=*.*')` expected?

Added by Martin Honnen almost 2 years ago

Is a NullPointerException on pulling a potentially very large uri collection with e.g. uri-collection('file:/?recurse=yes;select=*.*') expected?

java.lang.NullPointerException
	java.base/java.util.Objects.requireNonNull(Objects.java:221)
	java.base/java.util.Arrays$ArrayList.<init>(Arrays.java:4323)
	java.base/java.util.Arrays.asList(Arrays.java:4310)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:254)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.advance(DirectoryCollection.java:256)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.next(DirectoryCollection.java:228)
	net.sf.saxon.resource.DirectoryCollection$DirectoryIterator.next(DirectoryCollection.java:206)
	net.sf.saxon.tree.jiter.MappingJavaIterator.advance(MappingJavaIterator.java:56)
	net.sf.saxon.tree.jiter.MappingJavaIterator.next(MappingJavaIterator.java:49)
	net.sf.saxon.om.IteratorWrapper.next(IteratorWrapper.java:41)
	net.sf.saxon.query.XQueryExpression$ErrorReportingIterator.next(XQueryExpression.java:804)
	net.sf.saxon.value.SequenceExtent.from(SequenceExtent.java:48)
	net.sf.saxon.om.SequenceTool.toGroundedValue(SequenceTool.java:55)
	net.sf.saxon.s9api.XQueryEvaluator.evaluate(XQueryEvaluator.java:524)


Replies (1)

RE: Is a NullPointerException on pulling a potentially very large uri collection with e.g. `uri-collection('file:/?recurse=yes;select=*.*')` expected? - Added by Michael Kay almost 2 years ago

We're doing

directories.push(Arrays.asList(nextFile.listFiles(filter)).iterator());

and it seems that nextFile.listFiles(filter) is returning null.

The Javadoc for listFiles says "Returns null if this abstract pathname does not denote a directory, or if an I/O error occurs."

We know it's a directory, so I guess the only explanation is that an I/O error occurred. Odd that this should return null rather than throwing an exception. But I guess we should check for null here rather than throwing an NPE.

    (1-1/1)

    Please register to reply