Actions
Bug #4530
closedNullPointerException with `<xsl:copy-of select="/"/>`
Start date:
2020-04-28
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
10, 9.9
Fix Committed on Branch:
10, 9.9
Description
Norm Tovey-Walsh reports on the saxon-help mailing list:
In the course of debugging, I wanted to make sure the input actually contained something. I decided the least disruptive way to simply copy the input to the output was:
<xsl:template match="/"> <xsl:sequence select="/"/> </xsl:template>
It goes bang in 9.9.1-7 EE:
java.lang.NullPointerException
at net.sf.saxon.expr.Expression.getRetainedStaticContext(Expression.java:461)
at net.sf.saxon.expr.parser.LoopLifter.process(LoopLifter.java:50)
at net.sf.saxon.expr.parser.ExpressionTool.optimizeComponentBody(ExpressionTool.java:1213)
at com.saxonica.ee.trans.TemplateRuleInitializer.init(TemplateRuleInitializer.java:63)
at com.saxonica.ee.trans.TemplateRuleEE.initialize(TemplateRuleEE.java:85)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:509)
Please register to edit this issue
Actions