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/08/22 09:23:00 UTC

[jira] [Updated] (OAK-6568) TarFiles returns null instead of an empty list in the graph

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

Francesco Mari updated OAK-6568:
--------------------------------
    Description: The graph returned by {{TarFiles#getGraph}} contains {{null}} if a segment in a TAR file doesn't reference any other segment. To avoid accidental occurrences of {{NullPointerException}}, it would be better to return an empty list instead.  (was: The graph returned by {{TarFiles#getGraph}} contains {{null}} if a segment in a TAR file doesn't reference any other segment. To avoid accidental {{NullPointerException}}s, it would be better to return an empty list instead.)

> TarFiles returns null instead of an empty list in the graph
> -----------------------------------------------------------
>
>                 Key: OAK-6568
>                 URL: https://issues.apache.org/jira/browse/OAK-6568
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: segment-tar
>            Reporter: Francesco Mari
>            Assignee: Francesco Mari
>             Fix For: 1.8, 1.7.7
>
>
> The graph returned by {{TarFiles#getGraph}} contains {{null}} if a segment in a TAR file doesn't reference any other segment. To avoid accidental occurrences of {{NullPointerException}}, it would be better to return an empty list instead.



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