#900 AIOOBE accessing typed value of attribute

v9.1
closed
5
2012-10-08
2008-12-08
Michael Kay
No

When accessing the typed value of an attribute node using Saxon-SA, when the string value is zero-length, an ArrayIndexOutOfBoundsException may occur in method TinyTree.isNilled() if the tree in question has more attribute nodes than non-attribute nodes. This is because the code is incorrectly checking to see whether the element with the same index position as the attribute has been nilled.

A patch (to Saxon-SA source code) is being placed in Subversion on the 9.1 branch, and the problem will be fixed in the next maintenance build.

Discussion

  • Michael Kay

    Michael Kay - 2008-12-08

    Minor correction - although the affected code is on a path that applies only to schema-aware processing, it is actually in the Saxon-B module net.sf.saxon.om.TinyAttributeImpl.

     
  • Michael Kay

    Michael Kay - 2008-12-17

    Fixed in 9.1.0.5