Actions
Bug #2031
closedNullPointerException after optimizing saxon:stream()
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.
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
Actions