Project

Profile

Help

Bug #4227

closed

java.lang.NullPointerException when using xsl:catch with @error on undefined errors

Added by Jan Pertermann over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2019-05-24
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8, 9.9, trunk
Fix Committed on Branch:
9.8, 9.9, trunk
Fixed in Maintenance Release:
Platforms:

Description

I get a java.lang.NullPointerException when trying to catch an undefined error in XSLT such as a java.io.FileNotFoundException.

                <xsl:try>
                    <xsl:result-document href="{resolve-uri('example')}">
                        <root></root>
                    </xsl:result-document>
                    <xsl:catch errors="err:*">
                    </xsl:catch>
                    <xsl:catch>
                    </xsl:catch>
                </xsl:try>

Prerequisite for this to (not) work is that there is a directory with same path example.

Please have a look at the test.xsl attachement to reproduce. I guess saxon tries to compare the error QName, which in this case does not exist ...

  • OS: Win 10
  • Saxon: PE 9.8.0.15 .Net / 9.8.0.12 Java

Files

test.xsl (2.79 KB) test.xsl Jan Pertermann, 2019-05-24 13:02

Please register to edit this issue

Also available in: Atom PDF