Problem with TransformerImpl.setParameter()
Replies (3)
Please register to reply
Please register to reply
Added by David Fonquernie about 10 years ago
Hello again,
I've a new problem since I upgraded saxon from 9.4 to 9.6. I get a NullPointerException
when I call TransformerImpl.setParameter()
.
java.lang.NullPointerException at net.sf.saxon.s9api.XsltExecutable.getGlobalParameters(XsltExecutable.java:126) at net.sf.saxon.jaxp.TransformerImpl.setParameter(TransformerImpl.java:196)
After investigation it seems that it is because my XSL doesn't have any xsl:param/
, so Executable.registerGlobalVariable()
is never called during the XSL compilation so Executable.compiledGlobalVariables
remains null
.
Regards.
Please register to reply
Logged as a bug here:
Now fixed (for the next maintenance release). Sorry for the inconvenience.
That was quick, thanks :)
Please register to reply