NPE in UserFunctionCall.callFunction
Added by Anonymous about 20 years ago
Legacy ID: #2855728 Legacy Poster: marcvc (marcvc)
Michael, a negative XQuery scenario I encountered by accidient. I haven't double checked, it might well be a known problem in Saxon 8.1.1. declare namespace foo = "foo"; foo:unknown() -> java.lang.NullPointerException at net.sf.saxon.expr.UserFunctionCall.callFunction(UserFunctionCall.java:202) at net.sf.saxon.expr.UserFunctionCall.iterate(UserFunctionCall.java:179) at net.sf.saxon.expr.ComputedExpression.process(ComputedExpression.java:446) at net.sf.saxon.instruct.InstructionWithChildren.processChildren(InstructionWithChildren.java:158) at net.sf.saxon.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:141) at net.sf.saxon.instruct.DocumentInstr.processLeavingTail(DocumentInstr.java:77) at net.sf.saxon.instruct.Instruction.process(Instruction.java:91) at net.sf.saxon.query.XQueryExpression.run(XQueryExpression.java:277) at net.sf.saxon.Query.doMain(Query.java:368) at net.sf.saxon.Query.main(Query.java:69) I haven't checked if this is a known problem Regards, Marc
Replies (1)
RE: NPE in UserFunctionCall.callFunction - Added by Anonymous about 20 years ago
Legacy ID: #2856067 Legacy Poster: Michael Kay (mhkay)
Thanks for reporting it. It's already fixed, though I've now added it to the bug register. (The error is detected and reported at compile time, but Saxon then attempts to execute the query regardless, at which point it falls over.)
Please register to reply