Project

Profile

Help

Bug #2031

closed

NullPointerException after optimizing saxon:stream()

Added by Michael Kay about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Saxon extensions
Sprint/Milestone:
-
Start date:
2014-03-11
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

Execution of the following query fails with a NullPointerException:

let $x := saxon:stream(doc('temp/test.xml')/*/*)[1] return $x

The reason is that in the course of optimizing the expression to remove the redundant variable, the saxon:stream() expression is copied, and in the course of copying it loses its reference to the "container" of the expression which holds location and context information; a subsequent reference to this container results in the NPE.

A patch to StreamingCopy.copy() is being committed.

Actions #1

Updated by O'Neil Delpratt about 10 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in version set to 9.5.1.5

Bug fix applied in Saxon maintenance release 9.5.1.5

Please register to edit this issue

Also available in: Atom PDF