Project

Profile

Help

Problem with TransformerImpl.setParameter()

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.


Replies (3)

Please register to reply

RE: Problem with TransformerImpl.setParameter() - Added by Michael Kay about 10 years ago

Now fixed (for the next maintenance release). Sorry for the inconvenience.

    (1-3/3)

    Please register to reply