Export code assumes there is a "target" (e.g. EE or JS) but this is not the case when doing an "explain"
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