Bug #1744
closedNPE in compiling xsl:iterate under 9.5.0.1
100%
Description
The attached works under 9.4.0.7 but yields NPE during compilation at XSLNextIteration.java:135 under 9.5.0.1
It appears to be related to the starting parameter value, and the type of $offsets.
(Of course in reality the true function is much more complex and realistic, but this seems to have almost the minimum - I haven't tried it not being under a function...)
Files
Updated by Michael Kay over 11 years ago
- Category set to XSLT conformance
- Assignee set to Michael Kay
- Priority changed from Low to Normal
- Found in version set to 9.5
Thanks for reporting it. In this instance, the problem occurs because the parameter being set by xsl:next-iteration is never used. Because it is never used, it has been "optimized out", and the code that handles the with-param has not allowed for this possibility.
Updated by Michael Kay over 11 years ago
- Status changed from New to Resolved
I've committed a patch which fixes this by disabling the ignoring of unused parameters in xsl:iterate.
Updated by O'Neil Delpratt over 11 years ago
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in version set to 9.5.0.2
Please register to edit this issue