You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "angela (JIRA)" <ji...@apache.org> on 2013/04/09 16:14:16 UTC

[jira] [Created] (OAK-765) AbstractNodeState#getChildNode returns null despite @Nonnull return value

angela created OAK-765:
--------------------------

             Summary: AbstractNodeState#getChildNode returns null despite @Nonnull return value
                 Key: OAK-765
                 URL: https://issues.apache.org/jira/browse/OAK-765
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: core
            Reporter: angela


the implementation of AbstractNodeState#getChildNode looks as follows:

{code}
@Override
    public NodeState getChildNode(String name) {
        checkNotNull(name);
        for (ChildNodeEntry entry : getChildNodeEntries()) {
            if (name.equals(entry.getName())) {
                return entry.getNodeState();
            }
        }
        return null;
    }
{code}

this violates the contract defined by NodeState interface which specifies
that getChildNode would never return null

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira