ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r592514 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Touch.java
Date Tue, 06 Nov 2007 18:29:38 GMT
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message