Author: mbenson
Date: Tue Nov  6 10:29:37 2007
New Revision: 592514

URL: http://svn.apache.org/viewvc?rev=592514&view=rev
Log:
oops; introduced NPE

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Touch.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Touch.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Touch.java?rev=592514&r1=592513&r2=592514&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Touch.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Touch.java Tue Nov  6 
10:29:37 2007
@@ -291,6 +291,9 @@
             touch(new FileResource(file.getParentFile(), file.getName()),
                   defaultTimestamp);
         }
+        if (resources == null) {
+            return;
+        }
         // deal with the resource collections
         Iterator iter = resources.iterator();
         while (iter.hasNext()) {



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to