Project

Profile

Help

Bug #3409

closed

Crash in Xslt.cs when initialContextNode == null

Added by Harry Davidson over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Sprint/Milestone:
-
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
Fixed in Maintenance Release:
Platforms:

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

Also available in: Atom PDF