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

Avoid NullPointerException in ReadWriteVersionManager.removeVersion

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.40.0
    • 1.42.0, 1.22.17
    • core
    • None

    Description

      On occasion the following NullPointerException can be witnessed:

      java.lang.NullPointerException: null
      	at org.apache.jackrabbit.oak.plugins.version.ReadWriteVersionManager.removeVersion(ReadWriteVersionManager.java:208)
      	at org.apache.jackrabbit.oak.plugins.version.VersionStorageEditor.childNodeDeleted(VersionStorageEditor.java:122)
      

      This points to some inconsistency wrt jcr:predecessors and jcr:successors.

      As a minimal step we should avoid the null pointer and add more logging - to help ultimately track down what causes the inconsistency.

      Attachments

        Issue Links

          Activity

            People

              stefanegli Stefan Egli
              stefanegli Stefan Egli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: