Project

Profile

Help

Bug #2695

closed

NPE at Assignation.evaluateVariable

Added by O'Neil Delpratt about 8 years ago. Updated about 8 years ago.

Status:
Won't fix
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2016-04-05
Due date:
% Done:

0%

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

Description

Reported by user Denis:

Saxon 9.7.0-4. I run the following query:

declare namespace s=\"http://tpox-benchmark.com/security\";
declare namespace c=\"http://tpox-benchmark.com/custacc\";
declare variable $id external;
for $cust in fn:collection()/c:Customer[@id=$id]
for $sec in fn:collection()/s:Security[s:Symbol=$cust/c:Accounts/c:Account/c:Holdings/c:Position/c:Symbol/fn:string(.)]
return <Security>{$sec/s:Name/text()}</Security>

providing a particular $id and iterate through expression tree. When I do evaluateVariable for one of VariableReferences NPE is thrown:

java.lang.NullPointerException: null

at net.sf.saxon.om.SequenceTool.toGroundedValue(SequenceTool.java:49) ~[Saxon-HE-9.7.0-4.jar:na]

at net.sf.saxon.expr.Assignation.evaluateVariable(Assignation.java:130) ~[Saxon-HE-9.7.0-4.jar:na]

..........

Please have a look.

Note: I just moved to Saxon 9.7. Earlier I use Saxon 9.5.1-8 and had no this NPE issue on the same query.


Files

custacc.xml (5.63 KB) custacc.xml Denis Sukhoroslov, 2016-04-05 16:06
security1500.xml (4.07 KB) security1500.xml Denis Sukhoroslov, 2016-04-05 16:06
security5621.xml (3.29 KB) security5621.xml Denis Sukhoroslov, 2016-04-05 16:06
security9012.xml (2.57 KB) security9012.xml Denis Sukhoroslov, 2016-04-05 16:06

Please register to edit this issue

Also available in: Atom PDF