Actions
Bug #1834
closedClassCastException in XdmNode.getParent()
Start date:
2013-06-28
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:
Description
In SaxonHE 9.5.1.1, if you have an XdmNode that has no parent and you
call getParent(), you get a class cast exception in:
public XdmNode getParent() {
return (XdmNode) XdmValue.wrap(getUnderlyingNode().getParent());
}
The problem is that getUnderlyingNode().getParent() returns the
instance of the XdmEmptySequence and that's not castable to XdmNode.
Be seeing you,
norm
Updated by Michael Kay almost 11 years ago
- Subject changed from NullPointerException in XdmNode.getParent() to ClassCastException in XdmNode.getParent()
- Status changed from New to Resolved
Patch committed to Subversion (9.5 and 9.6 branches).
Updated by O'Neil Delpratt over 10 years ago
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in version set to 9.5.1.2
Bug fix applied in the Saxon maintenance release 9.5.1.2
Please register to edit this issue
Actions