Browse Source

ignore null child collection, why not

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@453765 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 18 years ago
parent
commit
3b1908017a
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/main/org/apache/tools/ant/types/resources/Restrict.java

+ 3
- 0
src/main/org/apache/tools/ant/types/resources/Restrict.java View File

@@ -63,6 +63,9 @@ outer: for (Iterator ri = w.getResourceCollection().iterator(); ri.hasNext(
if (isReference()) { if (isReference()) {
throw noChildrenAllowed(); throw noChildrenAllowed();
} }
if (c == null) {
return;
}
w.add(c); w.add(c);
} }




Loading…
Cancel
Save