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);

        }

    }
Actions #1

Updated by Michael Kay over 6 years ago

  • Assignee set to O'Neil Delpratt
Actions #2

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.

Actions #3

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.

Actions #4

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

Actions #5

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

Actions #6

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

Also available in: Atom PDF