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

Possible NPE in OrderedContentMirrorStoreStrategy

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.20
    • Fix Version/s: 1.0
    • Component/s: core
    • Labels:
      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

        Issue Links

          Activity

            People

            • Assignee:
              teofili Tommaso Teofili
              Reporter:
              teofili Tommaso Teofili

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment