Actions
Bug #3409
closedCrash in Xslt.cs when initialContextNode == null
Start date:
2017-08-23
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
9.7, 9.8
Fix Committed on Branch:
9.7, 9.8
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);
}
}
Please register to edit this issue
Actions