Menu

#21 Allow null outputProperties in XQueryExpression.pull

open
nobody
None
5
2012-10-08
2007-08-10
Anonymous
No

XQueryExpression.run allows the outputProperties actual
parameter to be null, applying reasonable defaults in
that case. But XQueryExpression.pull does not; a
NullPointerException results.

A workaround is to allocate, fill in, and pass a
Properties object, but this will override output
properties specified in the query.

A better workaround is to call newController() on the
XQueryExpression, and getOutputProperties() on the
Controller, which returns the properties as tailored
by the query (and is essentially what run() does when
outputProperties is null). But that is fiddly enough
that it would be nice if pull behaved as run does.

Discussion


Log in to post a comment.