Actions
Bug #4251
closed![Author: Tony Graham](https://www.gravatar.com/avatar/91e184855c5b9482ef24e3d3fa3a2d19?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: Michael Kay](https://www.gravatar.com/avatar/db6526d63053f09b62e52c2da8b2230a?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
java.lang.NullPointerException in Saxon-EE 9.9.1.4J but not Saxon-PE 9.9.1.4J
Start date:
2019-07-12
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
9.9, trunk
Fix Committed on Branch:
9.9, trunk
Fixed in Maintenance Release:
Platforms:
Description
I am getting a java.lang.NullPointerException only in Saxon-EE.
I will add a sample as soon as I can. I am posting the stack trace now in the hope that you have an 'Aha!' moment sooner than I can whittle everything down to a manageable size.
java.lang.NullPointerException
at net.sf.saxon.expr.VariableReference.computeCardinality(VariableReference.java:395)
at net.sf.saxon.expr.Expression.computeStaticProperties(Expression.java:1196)
at net.sf.saxon.expr.Expression.getDependencies(Expression.java:772)
at net.sf.saxon.expr.Expression.computeDependencies(Expression.java:1258)
at net.sf.saxon.expr.Expression.computeStaticProperties(Expression.java:1195)
at net.sf.saxon.expr.Expression.getCardinality(Expression.java:714)
at net.sf.saxon.expr.parser.TypeChecker.staticTypeCheck(TypeChecker.java:159)
at net.sf.saxon.expr.GeneralComparison.typeCheck(GeneralComparison.java:211)
at com.saxonica.ee.optim.IndexedFilterExpression.optimize(IndexedFilterExpression.java:185)
To this untrained eye, this looks similar to #2567
Unfortunately, the first and last stylesheet references in the stack trace are:
Caused by: java.lang.RuntimeException: Internal error evaluating template rule at line 98 in module file:/P:/tgraham/pubsrc/xsl/xxxxx2pdf/generateBookmarks.xsl
which is this template:
<xsl:template mode="make-bookmark-label" match="xhtml:header" as="xs:string?">
<xsl:param name="doDebug" as="xs:boolean" tunnel="yes" select="false()"/>
<xsl:variable name="content">
<xsl:apply-templates mode="#current">
<xsl:with-param name="doDebug" as="xs:boolean" tunnel="yes" select="$doDebug"/>
</xsl:apply-templates>
</xsl:variable>
<xsl:variable name="base-text">
<xsl:value-of select="$content"/>
</xsl:variable>
<xsl:sequence select="normalize-space($base-text)"/>
</xsl:template>
so I'm not expecting much joy until you can see a sample.
Files
Please register to edit this issue
Actions