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:40:00 UTC
[jira] [Created] (OAK-6386) GarbageCollector#compact() throws NPE
Francesco Mari created OAK-6386:
-----------------------------------
Summary: 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)