Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-765

AbstractNodeState#getChildNode returns null despite @Nonnull return value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.7
    • core
    • None

    Description

      the implementation of AbstractNodeState#getChildNode looks as follows:

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

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

      Attachments

        Issue Links

          Activity

            People

              jukkaz Jukka Zitting
              angela Angela Schreiber
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: