#124 NullPointerExc'n with //d[$var]

v7.4
closed
5
2012-10-08
2003-03-20
Michael Kay
No

A NullPointerException occurs at compile time when
processing an expression of the form //d[$var] or
c//d[$var].

Saxon attempts to rewrite such the expression c//d[E]
as c/descendant[E], provided the filter expression E
cannot be numeric. However, if the filter expression is
a variable reference $var, then this rewrite cannot be
done until type information has been analyzed. The
rewrite is being done too early, hence the
NullPointerException.

Test case added: posn97

Source code fixed. The rewrite has been moved from the
context-indepentent simplify() phase to the
context-dependent typeCheck() phase.

Affects Saxon 7.4 only.

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks