This line of code:
Is causing a NullPointer exception for some reason and I can't pinpoint the cause.
The full class looks like this, and all the other methods, including " public boolean nodeExists(
String expr, Object item) {" work fine and are actively being used.
Here's the entire class source (I'd have cherry picked the vital bits if I had an idea what the cause was):
Here's the usage of it (from a factory class building an object from an XML schema):
I'm lost and I'm sure this is something trivial. I'm sure I'm not doing myself any favours by offering "null" as a return value from the XmlReader class methods really so I'll change that too.