[ 
https://issues.apache.org/jira/browse/OAK-9567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17755617#comment-17755617
 ] 

Stefan Egli commented on OAK-9567:
----------------------------------

* [PR#1077|https://github.com/apache/jackrabbit-oak/pull/1077] is the backport 
into 1.22 branch - thx [~daim]
* 

> 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
>    Affects Versions: 1.40.0
>            Reporter: Stefan Egli
>            Assignee: Stefan Egli
>            Priority: Minor
>             Fix For: 1.42.0
>
>
> 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.20.10#820010)

Reply via email to