From 8031b5383949411e6f07a300834a9febf9ee1a1a Mon Sep 17 00:00:00 2001 From: Costin Manolache Date: Tue, 31 Dec 2002 15:33:36 +0000 Subject: [PATCH] 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 --- src/main/org/apache/tools/ant/UnknownElement.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/org/apache/tools/ant/UnknownElement.java b/src/main/org/apache/tools/ant/UnknownElement.java index c2b7259ff..8a099d708 100644 --- a/src/main/org/apache/tools/ant/UnknownElement.java +++ b/src/main/org/apache/tools/ant/UnknownElement.java @@ -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