ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r453765 - /ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Restrict.java
Date Fri, 06 Oct 2006 21:08:10 GMT
Author: mbenson
Date: Fri Oct  6 14:08:10 2006
New Revision: 453765

URL: http://svn.apache.org/viewvc?view=rev&rev=453765
Log:
ignore null child collection, why not

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Restrict.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Restrict.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Restrict.java?view=diff&rev=453765&r1=453764&r2=453765
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Restrict.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Restrict.java Fri Oct  6
14:08:10 2006
@@ -63,6 +63,9 @@
         if (isReference()) {
             throw noChildrenAllowed();
         }
+        if (c == null) {
+            return;
+        }
         w.add(c);
     }
 



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


Mime
View raw message