Project

Profile

Help

NPE in SavedNamespaceContext

Added by Anonymous over 19 years ago

Legacy ID: #3036175 Legacy Poster: marcvc (marcvc)

Michael, found by accident while working on my last posting of a couple of minutes ago. Query: <e>{attribute {fn:node-name(<a/>)} {}}</e> Results in a NPE: java.lang.NullPointerException at net.sf.saxon.instruct.SavedNamespaceContext.getURIForPrefix(SavedNamespaceContext.java:62) at net.sf.saxon.instruct.Attribute.evaluateNameCode(Attribute.java:320) at net.sf.saxon.instruct.Attribute.processLeavingTail(Attribute.java:200) at net.sf.saxon.instruct.Instruction.process(Instruction.java:87) at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:230) at net.sf.saxon.instruct.Instruction.process(Instruction.java:87) at net.sf.saxon.query.XQueryExpression.run(XQueryExpression.java:277) at net.sf.saxon.Query.doMain(Query.java:389) at net.sf.saxon.Query.main(Query.java:76) Regards, Marc


Replies (1)

RE: NPE in SavedNamespaceContext - Added by Anonymous over 19 years ago

Legacy ID: #3036580 Legacy Poster: Michael Kay (mhkay)

This is fixed by the changes described at https://sourceforge.net/tracker/index.php?func=detail&amp;aid=1159119&amp;group_id=29872&amp;atid=397617 Michael Kay

    (1-1/1)

    Please register to reply