[
https://issues.apache.org/jira/browse/FLUME-1652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481055#comment-13481055
]
Hari Shreedharan commented on FLUME-1652:
-----------------------------------------
Yes. I think we should remove the check and throw anyway. We do check during
initialization itself that the path represents a directory, right? I didn't
notice the I/O error part in the Javadoc. +1 on removing the check.
> Logutils.getLogs could NPE
> --------------------------
>
> Key: FLUME-1652
> URL: https://issues.apache.org/jira/browse/FLUME-1652
> Project: Flume
> Issue Type: Improvement
> Affects Versions: v1.2.0
> Reporter: Brock Noland
> Assignee: Brock Noland
> Priority: Minor
> Fix For: v1.4.0
>
> Attachments: FLUME-1652-0.patch
>
>
> It shouldn't happen since the directories are checked on startup to ensure
> they exist, but if an IO error occurred or if something changed underneath
> it, LogUtils.getLogs could throw an NPE in the for loop.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira