Browse Source

Bugzilla 44689: NPE with multiple targets and id's in task

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@641903 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 17 years ago
parent
commit
561706f38c
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      src/main/org/apache/tools/ant/UnknownElement.java

+ 6
- 3
src/main/org/apache/tools/ant/UnknownElement.java View File

@@ -288,11 +288,14 @@ public class UnknownElement extends Task {
((Task) realThing).execute();
}
} finally {
// Finished executing the task, null it to allow
// Finished executing the task
// null it (unless it has an ID) to allow
// GC do its job
// If this UE is used again, a new "realthing" will be made
realThing = null;
getWrapper().setProxy(null);
if (getWrapper().getId() == null) {
realThing = null;
getWrapper().setProxy(null);
}
}
}



Loading…
Cancel
Save