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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to