You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Michele Vivoda (JIRA)" <ji...@apache.org> on 2014/11/22 23:16:13 UTC

[jira] [Commented] (JXPATH-171) No way to test whether a Pointer is null

    [ https://issues.apache.org/jira/browse/JXPATH-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14222214#comment-14222214 ] 

Michele Vivoda commented on JXPATH-171:
---------------------------------------

You could probably check this with Pointer.getValue() == null ?

> No way to test whether a Pointer is null
> ----------------------------------------
>
>                 Key: JXPATH-171
>                 URL: https://issues.apache.org/jira/browse/JXPATH-171
>             Project: Commons JXPath
>          Issue Type: Improvement
>    Affects Versions: 1.3
>            Reporter: Michael Osipov
>
> When constructing a pointer, there is no way to test whether the outcome points to a valid node or is a null pointer. One has to do {{p instanceof NullPointer}}. A method {{isNull}} would be very helpful.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)