ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r400384 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Replace.java
Date Sun, 07 May 2006 01:57:24 GMT
Author: kevj
Date: Sat May  6 18:57:23 2006
New Revision: 400384

URL: http://svn.apache.org/viewcvs?rev=400384&view=rev
Log:
put null guard check back to prevent a problem with another gump project

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Replace.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Replace.java?rev=400384&r1=400383&r2=400384&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Replace.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Replace.java Sat May  6 18:57:23
2006
@@ -631,8 +631,12 @@
                     + ioe.getClass().getName() + ":"
                     + ioe.getMessage(), ioe, getLocation());
         } finally {
-            in.closeQuietly();
-            out.closeQuietly();
+            if (null != in) {
+                in.closeQuietly();
+            }
+            if (null != out) {
+                out.closeQuietly();
+            }
             if (temp != null) {
                 if (!temp.delete()) {
                     temp.deleteOnExit();



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message