Stefan Egli created OAK-9567:
--------------------------------

             Summary: Avoid NullPointerException in 
ReadWriteVersionManager.removeVersion
                 Key: OAK-9567
                 URL: https://issues.apache.org/jira/browse/OAK-9567
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: core
            Reporter: Stefan Egli
            Assignee: Stefan Egli


On occasion the following NullPointerException can be witnessed:

{noformat}
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)
{noformat}

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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to