Hi Buddy, 

that looks like a bug. 

Would you mind sharing your XQuery or a SSCE?
I think this is definitely something we might want to have a look at :-)

Best from Konstanz

Michael 

Am 03.06.2019 um 13:12 schrieb Buddy Kresge <buddy.kresge@known2u.com>:

I am all of a sudden getting the below error (and things were working just fine – weird).  Works fine in 9.1.2 but not in 9.2.X.  Any guidance would be greatly appreciated.
 
Note:  I tried to send you an email with the full stack trace, but the moderator rejected it because the email was too long.  I’ve cut down the size, but you now no longer have the full stack trace.  If you need the full stack trace, please let me know how you’d like that shared with you.
 
Thanks,
Buddy
 
Error:
Improper use? Potential bug? Your feedback is welcome:
Version: BaseX 9.2
Java: AdoptOpenJdk, 1.8.0_202
OS: Windows 10, amd64
Stack Trace: 
java.lang.ArrayIndexOutOfBoundsException: 1
               at org.basex.query.expr.Preds.simplify(Preds.java:215)
               at org.basex.query.expr.Filter.optimize(Filter.java:82)
               at org.basex.query.expr.Filter.inline(Filter.java:260)
               at org.basex.query.expr.gflwor.ForLet.inline(ForLet.java:66)
               at org.basex.query.expr.gflwor.GFLWOR.inline(GFLWOR.java:804)
               at org.basex.query.expr.gflwor.GFLWOR.inlineLets(GFLWOR.java:339)
               at org.basex.query.expr.gflwor.GFLWOR.optimize(GFLWOR.java:106)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:98)
               at org.basex.query.expr.If.compile(If.java:63)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.expr.gflwor.ForLet.compile(ForLet.java:43)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:88)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncCall.compile(StaticFuncCall.java:64)
               at org.basex.query.expr.gflwor.GFLWOR.compile(GFLWOR.java:94)
               at org.basex.query.func.StaticFunc.comp(StaticFunc.java:69)
               at org.basex.query.func.StaticFuncs.compile(StaticFuncs.java:184)
               at org.basex.query.func.fn.FnFunctionLookup.opt(FnFunctionLookup.java:34)
               at org.basex.query.func.StandardFunc.optimize(StandardFunc.java:77)
               at org.basex.query.expr.Arr.compile(Arr.java:43)