Project

Profile

Help

Bug #1744

closed

NPE in compiling xsl:iterate under 9.5.0.1

Added by John Lumley almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XSLT conformance
Sprint/Milestone:
-
Start date:
2013-04-25
Due date:
% Done:

100%

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

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

bug95.xsl (1.03 KB) bug95.xsl John Lumley, 2013-04-25 11:56
Actions #1

Updated by Michael Kay almost 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.

Actions #2

Updated by Michael Kay almost 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.

Actions #3

Updated by O'Neil Delpratt almost 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

Also available in: Atom PDF