Actions
Bug #5000
closedLoopLifter NPE after updating to Saxon 10.5 EE
Start date:
2021-05-25
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
10, trunk
Fix Committed on Branch:
10, trunk
Fixed in Maintenance Release:
Platforms:
Description
We have recently upgraded from 9.9.1.4 EE to 10.5 EE. We're experiencing now a new NullPointerException
:
java.lang.NullPointerException
at net.sf.saxon.expr.parser.LoopLifter.markDependencies(LoopLifter.java:168)
The problem goes away when disabling the loop lifting optimization, via -opt:-l
.
The origin of the exception is with some very old legacy code. Please see the attach sample, looplift_npe.zip. I have been running:
/usr/bin/java -jar /path/to/10.5/saxon-ee-10.5.jar -xsl:stylesheet.xsl -s:in.xml
The problem is with legacy.xsl
which is only included.
Note, when I comment lns 26-32 and 211-219, then the problem also goes away. I don't understand why.
Since this is very old code, I reckon the NPE is caused by some defect there, however I just can't figure it out. I think we should be able to run v10.5 without disabling the looplift optimization.
Files
Please register to edit this issue
Actions