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