Bug #1744
closed![Author: John Lumley](https://www.gravatar.com/avatar/5f31c4e5bf2bba47a54a2542feccd70f?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)
NPE 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 about 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 about 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 about 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