Browse Source

Weird. UE didn't seem to call setProject on the task. That seems to be

the cause of the NPE.

PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273731 13f79535-47bb-0310-9956-ffa450edef68
master
Costin Manolache 22 years ago
parent
commit
8031b53839
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/main/org/apache/tools/ant/UnknownElement.java

+ 1
- 0
src/main/org/apache/tools/ant/UnknownElement.java View File

@@ -126,6 +126,7 @@ public class UnknownElement extends Task {
if (realThing instanceof Task) {
Task task=(Task)realThing;

task.setProject(project);
task.setRuntimeConfigurableWrapper(getWrapper());
task.setLocation(this.getLocation());
// UnknownElement always has an associated target


Loading…
Cancel
Save