You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matt Benson (JIRA)" <ji...@apache.org> on 2011/06/07 22:58:58 UTC
[jira] [Resolved] (JXPATH-142) DynamicBean with null name property
[ 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