commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tobr...@apache.org
Subject svn commit: r201763 - /jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/AndFileFilter.java
Date Sun, 26 Jun 2005 09:57:24 GMT
Author: tobrien
Date: Sat Jun 25 09:31:48 2005
New Revision: 201763

URL: http://svn.apache.org/viewcvs?rev=201763&view=rev
Log:
Added validation of List constructor argument.

Modified:
    jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/AndFileFilter.java

Modified: jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/AndFileFilter.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/AndFileFilter.java?rev=201763&r1=201762&r2=201763&view=diff
==============================================================================
--- jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/AndFileFilter.java
(original)
+++ jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/AndFileFilter.java
Sat Jun 25 09:31:48 2005
@@ -55,6 +55,9 @@
      * @since Commons IO 1.1
      */
     public AndFileFilter(final List fileFilters) {
+        if (fileFilters == null) {
+            throw new IllegalArgumentException("The filters List must not be null");
+        }
         this.fileFilters = new ArrayList(fileFilters);
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message