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

GarbageCollector#compact() throws NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.3, 1.8.0
    • Component/s: segment-tar
    • Labels:
      None

      Description

      The method FileStore.GarbageCollector#compact() will throw a NPE if compaction is cancelled. In this case, SegmentWriter#writeNode() returns null, but the caller does not check against it, thus causing the NPE to be thrown.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                frm Francesco Mari
                Reporter:
                frm Francesco Mari
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: