Open ptrckb opened 6 years ago
I had similar issues. According to @adamretter this should be fixed in v4.1.1 / v4.2.0 (what ever comes first)
@dizzzz Nope this is a different one.
A quick Java debug session shows that the problem is somehow with:
declare variable $xx:function := function () {
()
};
When InlineFunction#eval(Sequence, Item)
is called, it expects that InlineFunction#analyze(AnalyzeContextInfo)
was called beforehand. However that is not happening and so a NullPointerException
is thrown via line 82 of InlineFunction.java
, where an attempt is made to operate on cachedContextInfo
which should have been set in analyze
but never was (in this instance).
I have no idea how the intended operation should work. I think this is one for @wolfgangmm as he implemented this. Should be a quick fix if one understand why it works in the way it does currently.
@wolfgangmm a live sign please
What is the problem
An error
java:java.lang.NullPointerException
is reported in the XQSuite output when the function tested makes a dynamic call to a function in a variable.There is no additional information in
exist.log
.What did you expect
The test should pass with no error.
If executed outsite the test suite, the function does run fine.
Describe how to reproduce or add a test
Testing the following module ('/db/apps/xx.xqm'):
with the following XQSuite test suite:
results in this report:
Context information
Please always add the following information