null pointer exception with 9.8.02

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

null pointer exception with 9.8.02

David Carlisle



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)



<?xml version="1.0" encoding="utf-8"?>
<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>
<arg/>
</xsl:function>


</xsl:stylesheet>


Disclaimer

The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: null pointer exception with 9.8.02

Michael Kay
Thanks, logged here:


Michael Kay
Saxonica


On 22 Jun 2017, at 16:36, David Carlisle <[hidden email]> wrote:




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)



<?xml version="1.0" encoding="utf-8"?>
<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>
<arg/>
</xsl:function>


</xsl:stylesheet>


Disclaimer

The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Loading...