Sorry for the delay in responding to this one.

It is logged here:

and fixed.

Michael Kay

On 26 Feb 2014, at 11:00, Rademacher, Gunther <> wrote:

This is not something where I am stuck, but while writing a query to peek at the first result
from a large document, I saw an NPE being thrown from this one:
let $x := saxon:stream(doc('uri')/*/*)[1] return $x
It works fine when inlining $x. The stack trace is shown below.
Best regards
        at CE_main_1693202348.iterate(Unknown Source)
        at com.saxonica.bytecode.CompiledExpression.iterate(
        at net.sf.saxon.query.XQueryExpression.iterator(
        at net.sf.saxon.s9api.XQueryEvaluator.iterator(

Software AG – Sitz/Registered office: Uhlandstraße 12, 64297 Darmstadt, Germany – Registergericht/Commercial register: Darmstadt HRB 1562 - Vorstand/Management Board: Karl-Heinz Streibich (Vorsitzender/Chairman), Dr. Wolfram Jost, Arnd Zinnhardt; - Aufsichtsratsvorsitzender/Chairman of the Supervisory Board: Dr. Andreas Bereczky -
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
saxon-help mailing list archived at