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 "Davide Giannella (JIRA)" <ji...@apache.org> on 2017/07/06 15:35:05 UTC

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

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

Davide Giannella closed OAK-6386.
---------------------------------

Bulk close for 1.7.3

> 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)