Project

Profile

Help

Bug #2031

NullPointerException after optimizing saxon:stream()

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

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

100%

Spent time:
-
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
9.5
Fixed in version:
9.5.1.5

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.

History

#1 Updated by O'Neil Delpratt about 2 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

Also available in: Atom PDF