You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Francesco Mari (JIRA)" <ji...@apache.org> on 2017/06/22 17:42:00 UTC

[jira] [Resolved] (OAK-6386) GarbageCollector#compact() throws NPE

     [ https://issues.apache.org/jira/browse/OAK-6386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Mari resolved OAK-6386.
---------------------------------
    Resolution: Fixed

Fixed at r1799600.

> GarbageCollector#compact() throws NPE
> -------------------------------------
>
>                 Key: OAK-6386
>                 URL: https://issues.apache.org/jira/browse/OAK-6386
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segment-tar
>            Reporter: Francesco Mari
>            Assignee: Francesco Mari
>             Fix For: 1.8, 1.7.3
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)