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