commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Benson (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JXPATH-142) DynamicBean with null name property
Date Tue, 07 Jun 2011 20:58:58 GMT

     [ https://issues.apache.org/jira/browse/JXPATH-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matt Benson resolved JXPATH-142.
--------------------------------

    Resolution: Fixed

Committed revision 1133160.

> DynamicBean with null name property
> -----------------------------------
>
>                 Key: JXPATH-142
>                 URL: https://issues.apache.org/jira/browse/JXPATH-142
>             Project: Commons JXPath
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Ivan Fedenkov
>
> VariablePointer.getImmediateValuePointer() on line 127 creates a DynamicPointer with
name==null :
> {code}
>     public NodePointer getImmediateValuePointer() {
>         if (valuePointer == null) {
>         ...
>             if (actual) {
>         ...
>                 valuePointer =
>                     NodePointer.newChildNodePointer(this, null, value);
>             }
>         ...
>         }
>         return valuePointer;
>     }
> {code}
> then DynamicPointer.equals(...) or DynamicPointer.hashCode() throws NPE.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message