Browse Source

put null guard check back to prevent a problem with another gump project

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@400384 13f79535-47bb-0310-9956-ffa450edef68
master
Kevin Jackson 19 years ago
parent
commit
487186aa91
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/main/org/apache/tools/ant/taskdefs/Replace.java

+ 6
- 2
src/main/org/apache/tools/ant/taskdefs/Replace.java View File

@@ -631,8 +631,12 @@ public class Replace extends MatchingTask {
+ 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();


Loading…
Cancel
Save