FindBugs: Avoid possible NPE.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1725345 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
453cfcbb59
commit
c52b1f0a9d
|
@ -79,10 +79,10 @@ public class CSVFileParserTest {
|
|||
}
|
||||
};
|
||||
final File[] files = BASE.listFiles(filenameFilter);
|
||||
for (final File f : files) {
|
||||
list.add(new Object[] {
|
||||
f
|
||||
});
|
||||
if (files != null) {
|
||||
for (final File f : files) {
|
||||
list.add(new Object[] { f });
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue