From 19d970dbd33bac4654e4d8319afe11dcb15dd708 Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Fri, 5 Aug 2005 22:02:51 +0000 Subject: [PATCH] FailFast adjustments git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278499 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/types/resources/Restrict.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/types/resources/Restrict.java b/src/main/org/apache/tools/ant/types/resources/Restrict.java index 2f8409811..0010ae546 100755 --- a/src/main/org/apache/tools/ant/types/resources/Restrict.java +++ b/src/main/org/apache/tools/ant/types/resources/Restrict.java @@ -88,6 +88,9 @@ outer: for (Iterator ri = w.getResourceCollection().iterator(); ri.hasNext( * @param s the ResourceSelector to add. */ public synchronized void add(ResourceSelector s) { + if (s == null) { + return; + } super.add(s); FailFast.invalidate(this); } @@ -101,7 +104,7 @@ outer: for (Iterator ri = w.getResourceCollection().iterator(); ri.hasNext( return ((Restrict) getCheckedRef()).iterator(); } dieOnCircularReference(); - return new FailFast(this, w.iterator()); + return w.iterator(); } /**