[
https://issues.apache.org/jira/browse/FLINK-33367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chirag Dewan updated FLINK-33367:
---------------------------------
Description:
There is a null check in DefaultFileFilter:
if (fileName == null || fileName.length() == 0)
{ return true; }
So 2 questions here -
1) Can a file name ever be null?
2) What will be the behavior with return true? Should it be return false rather?
was:
There is a null check in DefaultFileFilter:
if (fileName == null || fileName.length() == 0) {
return true;
}
So 2 questions here -
1) Can a file name ever be null?
2) What will be the behavior with return true? Should be it return false rather?
> Invalid Check in DefaultFileFilter
> ----------------------------------
>
> Key: FLINK-33367
> URL: https://issues.apache.org/jira/browse/FLINK-33367
> Project: Flink
> Issue Type: Bug
> Components: Connectors / FileSystem
> Affects Versions: 1.16.2
> Reporter: Chirag Dewan
> Priority: Minor
>
> There is a null check in DefaultFileFilter:
>
> if (fileName == null || fileName.length() == 0)
> { return true; }
>
> So 2 questions here -
> 1) Can a file name ever be null?
> 2) What will be the behavior with return true? Should it be return false
> rather?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)