Project

Profile

Help

Bug #3305

NullPointerException in 9.8.0.2 (regression from 9.8.0.1)

Added by Michael Kay about 2 years ago. Updated about 2 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
Category:
XSLT conformance
Sprint/Milestone:
-
Start date:
2017-06-22
Due date:
% Done:

0%

Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:

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)

<?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:if

/xsl:function

/xsl:stylesheet

History

#1 Updated by Michael Kay about 2 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

Also available in: Atom PDF