Bug #3305
closedNullPointerException in 9.8.0.2 (regression from 9.8.0.1)
0%
Description
The following works with 9.8.0.1 but gives a NPE with 9.8.0.2
David
java -jar saxon9he.jar -versionmsg
No source file name
Saxon-HE 9.8.0.2J from Saxonica
bash-4.3$ java -jar saxon9he.jar cp.xsl cp.xsl
java.lang.NullPointerException
at
net.sf.saxon.type.TypeHierarchy.relationship(TypeHierarchy.java:303)
at
net.sf.saxon.expr.instruct.Block.mayReturnTypedNodes(Block.java:264)
at net.sf.saxon.expr.instruct.Block.typeCheck(Block.java:601)
at
net.sf.saxon.expr.instruct.UserFunction.typeCheck(UserFunction.java:531)
at
net.sf.saxon.style.PrincipalStylesheetModule.compile(PrincipalStylesheetModule.java:1269)
at
net.sf.saxon.style.Compilation.compilePackage(Compilation.java:328)
at
net.sf.saxon.style.StylesheetModule.loadStylesheet(StylesheetModule.java:257)
at
net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:106)
at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:743)
at net.sf.saxon.Transform.doTransform(Transform.java:701)
at net.sf.saxon.Transform.main(Transform.java:81)
Fatal error during transformation: java.lang.NullPointerException: (no
message)
<xsl:stylesheet version="3.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:nag="data:,NAG"
exclude-result-prefixes="nag">
<xsl:function name="nag:makearg">
<xsl:param name="root"/>
<xsl:if test="empty($root/arg)">
<xsl:message select="$root/xid"/>
<xsl:message select="$root/name(*[1])"/>
</xsl:if>
</xsl:function>
</xsl:stylesheet>
Updated by Michael Kay almost 7 years ago
- Category set to XSLT conformance
- Status changed from New to Duplicate
- Assignee set to Michael Kay
- Priority changed from Low to Normal
This is the same as the problem found when investigating bug 3302 - NPE while computing the static type of a sequence constructor consisting entirely of xsl:message instructions.
Please register to edit this issue