From 7da916d5b96d6bc8e6761651d94348807d47cf9b Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Thu, 1 Nov 2007 13:00:02 +0000 Subject: [PATCH] make it impossible to have a null notify value git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@590988 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/util/WorkerAnt.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/util/WorkerAnt.java b/src/main/org/apache/tools/ant/util/WorkerAnt.java index 956787db8..919cf4641 100644 --- a/src/main/org/apache/tools/ant/util/WorkerAnt.java +++ b/src/main/org/apache/tools/ant/util/WorkerAnt.java @@ -54,7 +54,7 @@ public class WorkerAnt extends Thread { */ public WorkerAnt(Task task, Object notify) { this.task = task; - this.notify = notify; + this.notify = notify != null ? notify : this; } /** @@ -65,7 +65,6 @@ public class WorkerAnt extends Thread { */ public WorkerAnt(Task task) { this(task,null); - notify = this; } /**