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:
Gary D. Gregory 2016-01-18 20:54:16 +00:00
parent 453cfcbb59
commit c52b1f0a9d
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}