In XQuery, a NullPointerException may occur when an
empty element constructor is used as part of an
expression. For example, the query:
It should be possible to avoid the problem by giving
the element some dummy content, e.g. an empty sequence.
Source code fixed (in ElementCreator.promoteInst(), do
nothing if children==null). Test case added (qxmp144.xq).
Applies to 8.0.