typo in function name results in NPE
Added by Anonymous almost 20 years ago
Legacy ID: #2997180 Legacy Poster: marcvc (marcvc)
Michael, invoking a non-exisiting function in an xquery seems to result in a NPE with Saxon 8.3 fn:foo() results in: java.lang.NullPointerException at net.sf.saxon.query.QueryParser.grumble(QueryParser.java:234) at net.sf.saxon.expr.ExpressionParser.parseFunctionCall(ExpressionParser.java:1634) at net.sf.saxon.expr.ExpressionParser.parseBasicStep(ExpressionParser.java:1143) at net.sf.saxon.expr.ExpressionParser.parseStepExpression(ExpressionParser.java:1058) at net.sf.saxon.expr.ExpressionParser.parseRelativePath(ExpressionParser.java:1031) at net.sf.saxon.expr.ExpressionParser.parsePathExpression(ExpressionParser.java:1016) at net.sf.saxon.expr.ExpressionParser.parseUnaryExpression(ExpressionParser.java:907) at net.sf.saxon.expr.ExpressionParser.parseCastExpression(ExpressionParser.java:603) at net.sf.saxon.expr.ExpressionParser.parseCastableExpression(ExpressionParser.java:578) at net.sf.saxon.expr.ExpressionParser.parseTreatExpression(ExpressionParser.java:559) at net.sf.saxon.expr.ExpressionParser.parseInstanceOfExpression(ExpressionParser.java:541) at net.sf.saxon.expr.ExpressionParser.parseIntersectExpression(ExpressionParser.java:940) at net.sf.saxon.expr.ExpressionParser.parseUnionExpression(ExpressionParser.java:922) at net.sf.saxon.expr.ExpressionParser.parseMultiplicativeExpression(ExpressionParser.java:859) at net.sf.saxon.expr.ExpressionParser.parseAdditiveExpression(ExpressionParser.java:839) at net.sf.saxon.expr.ExpressionParser.parseRangeExpression(ExpressionParser.java:757) at net.sf.saxon.expr.ExpressionParser.parseComparisonExpression(ExpressionParser.java:707) at net.sf.saxon.expr.ExpressionParser.parseAndExpression(ExpressionParser.java:346) at net.sf.saxon.expr.ExpressionParser.parseOrExpression(ExpressionParser.java:328) at net.sf.saxon.expr.ExpressionParser.parseExprSingle(ExpressionParser.java:282) at net.sf.saxon.expr.ExpressionParser.parseExpression(ExpressionParser.java:245) at net.sf.saxon.query.QueryParser.parseQuery(QueryParser.java:142) at net.sf.saxon.query.QueryParser.makeXQueryExpression(QueryParser.java:70) at net.sf.saxon.query.QueryProcessor.compileQuery(QueryProcessor.java:162) at net.sf.saxon.query.QueryProcessor.compileQuery(QueryProcessor.java:189) at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:183) at net.sf.saxon.Query.doMain(Query.java:334) at net.sf.saxon.Query.main(Query.java:76) Regards, Marc
Replies (1)
RE: typo in function name results in NPE - Added by Anonymous almost 20 years ago
Legacy ID: #2997191 Legacy Poster: Michael Kay (mhkay)
Yes: known error. https://sourceforge.net/tracker/index.php?func=detail&aid=1121896&group_id=29872&atid=397617
Please register to reply