Bug #3409
closedCrash in Xslt.cs when initialContextNode == null
100%
Description
In file Xslt.cs, initialContextNode throws exception if null i.e. initialContextNode.getRoot();
I think this issue was introduced in 9.8.0.4:
public XdmNode InitialContextNode
{
get { return (initialContextNode == null ? null : (XdmNode)XdmValue.Wrap(initialContextNode)); }
set { initialContextNode = (value == null ? null : (JNodeInfo)value.Unwrap());
JNodeInfo doc = **initialContextNode.getRoot();**
if (doc != null)
{
controller.registerDocument(doc.getTreeInfo(), (doc.getBaseURI() == null ? null : new JDocumentURI(doc.getBaseURI())));
}
controller.setGlobalContextItem(doc);
}
}
Updated by O'Neil Delpratt over 6 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
- Applies to branch 9.7 added
- Fix Committed on Branch 9.7, 9.8 added
Yes, this is indeed a regression between the releases. I have committed a fix which will be available in the next maintenance release. I have also adding an nunit test for the InitialContextItem property when null.
Updated by O'Neil Delpratt over 6 years ago
- Fixed in Maintenance Release 9.8.0.5 added
Bug fix applied in the Saxon 9.8.0.5 maintenance release. Leave open until the bug fix is applied in 9.7 branch.
Updated by O'Neil Delpratt over 6 years ago
- Status changed from Resolved to Closed
Bug fix applied in the Saxon 9.8.0.5 maintenance release. Leave open until fix applied in the 9.7 release
Updated by O'Neil Delpratt over 6 years ago
- Status changed from Closed to Resolved
Bug fix applied in the Saxon 9.8.0.5 maintenance release. Leave open until fix applied in the 9.7 release
Updated by O'Neil Delpratt over 6 years ago
- Status changed from Resolved to Closed
- Fixed in Maintenance Release 9.7.0.21 added
Bug fix applied in the Saxon 9.7.0.21 maintenance release.
Please register to edit this issue