You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Psi Aushilfe3 <Au...@prosieben.de> on 2003/08/15 10:18:01 UTC
getPointer() returns not null
Hi!
JXPathContext.getPointer(), javadoc: "Traverses the xpath and returns a
Pointer. A Pointer provides easy access to a property. If the xpath
matches no properties in the graph, the pointer will be null."
Well, this seem not to (always?) be true. I have to check for
pointer.getNode() whether it is null but the pointer itself is not
null...
Re: getPointer() returns not null
Posted by Dmitri Plotnikov <dm...@apache.org>.
Hmm...
There is, of course, a difference between the "no such property" and "the
property is there, but it is null" situations. In the latter case the
Pointer won't be null.
Give me more information and I'll try to investigate.
Thanks,
- Dmitri
----- Original Message -----
From: "Psi Aushilfe3" <Au...@prosieben.de>
To: "Jakarta Commons Users List" <co...@jakarta.apache.org>
Sent: Friday, August 15, 2003 4:18 AM
Subject: getPointer() returns not null
Hi!
JXPathContext.getPointer(), javadoc: "Traverses the xpath and returns a
Pointer. A Pointer provides easy access to a property. If the xpath
matches no properties in the graph, the pointer will be null."
Well, this seem not to (always?) be true. I have to check for
pointer.getNode() whether it is null but the pointer itself is not
null...