Skip to content

Commit ae49ca8

Browse files
author
Tim O'Brien
committed
Added validation of List constructor argument.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/io/trunk@201763 13f79535-47bb-0310-9956-ffa450edef68
1 parent 0a88c9a commit ae49ca8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/java/org/apache/commons/io/filefilter/AndFileFilter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ public AndFileFilter() {
5555
* @since Commons IO 1.1
5656
*/
5757
public AndFileFilter(final List fileFilters) {
58+
if (fileFilters == null) {
59+
throw new IllegalArgumentException("The filters List must not be null");
60+
}
5861
this.fileFilters = new ArrayList(fileFilters);
5962
}
6063

0 commit comments

Comments
 (0)