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

Possible NPE in OrderedContentMirrorStoreStrategy

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.20
    • 1.0
    • core
    • None

    Description

      OrderedContentMirrorStoreStrategy may raise a NPE in prune method as the previous node in

      ChildNodeEntry previous = findPrevious(
                                  index.getNodeState(), node.getNodeState());
                          LOG.debug("previous: {}", previous);
                          // (2) find the next element
                          String next = node.getString(NEXT); 
                          if (next == null) {
                              next = "";
                          }
                          // (3) re-link the previous to the next
                          index.getChildNode(previous.getName()).setProperty(NEXT, next); // <-- NPE if previous is null
      

      may be null

      Attachments

        1. OAK-1730.patch
          13 kB
          Davide Giannella

        Issue Links

          Activity

            People

              teofili Tommaso Teofili
              teofili Tommaso Teofili
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: