Skip to content

Commit e191b9c

Browse files
committed
Fix NPE since java.io.File.listFiles(FileFilter) can return null.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1687886 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2541eb4 commit e191b9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/io/FileUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3141,6 +3141,6 @@ public boolean accept(File aFile) {
31413141
}
31423142
}
31433143
);
3144-
return fileInDir.length > 0;
3144+
return fileInDir != null && fileInDir.length > 0;
31453145
}
31463146
}

0 commit comments

Comments
 (0)