Project

Profile

Help

Bug #4100

closed

Export code assumes there is a "target" (e.g. EE or JS) but this is not the case when doing an "explain"

Added by Michael Kay over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2019-01-18
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.9
Fix Committed on Branch:
9.9
Fixed in Maintenance Release:
Platforms:

Description

Some code is shared between "export" (which applies to XSLT only, and produces a SEF file), and "explain", which applies to both XSLT and XQuery, and produces diagnostic information. In some cases the export() method assumes that the ExpressionPresenter has a "target" property; but when doing an "explain", this may be null.

Fixed by initializing the target property to "", so target.equals("XX") always return false rather than crashing.

Please register to edit this issue

Also available in: Atom PDF