#949 NPE compiling reference to global variable

v9.1
closed
Michael Kay
5
2012-10-08
2009-05-14
Michael Kay
No

During stylesheet compilation, a NullPointerException can occur when compiling a construct of the form

<xsl:variable name="local" select="$global"/>

where $local is a local variable and $global is a global variable, if the template containing the local variable declaration is compiled before the global variable is compiled (that is, if it is a forward reference).

A patch is being placed in Subversion.

Discussion

  • Michael Kay
    Michael Kay
    2009-06-17

    Fixed in 9.1.0.7