Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 11609 invoked from network); 10 Oct 2003 13:57:40 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 10 Oct 2003 13:57:40 -0000 Received: (qmail 1543 invoked by uid 500); 10 Oct 2003 13:57:33 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 1486 invoked by uid 500); 10 Oct 2003 13:57:32 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 1453 invoked from network); 10 Oct 2003 13:57:31 -0000 Received: from unknown (HELO corvil.com) (213.94.219.177) by daedalus.apache.org with SMTP; 10 Oct 2003 13:57:31 -0000 Received: from preilly.local.corvil.com (preilly.local.corvil.com [172.18.1.173]) by corvil.com (8.12.9/8.12.5) with ESMTP id h9ADvUxe038573 for ; Fri, 10 Oct 2003 14:57:31 +0100 (IST) (envelope-from peter.reilly@corvil.com) From: peter reilly Organization: corvil To: Ant Developers List Subject: Re: cvs commit: ant/src/main/org/apache/tools/ant/taskdefs Ant.java Date: Fri, 10 Oct 2003 14:57:50 +0100 User-Agent: KMail/1.5 References: <20031010131946.90832.qmail@minotaur.apache.org> In-Reply-To: <20031010131946.90832.qmail@minotaur.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200310101457.51207.peter.reilly@corvil.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Opps, Well found! Peter On Friday 10 October 2003 14:19, bodewig@apache.org wrote: > bodewig 2003/10/10 06:19:46 > @@ -450,10 +450,12 @@ > Set set = new HashSet(); > for (int i = properties.size() - 1; i >= 0; --i) { > Property p = (Property) properties.get(i); > - if (set.contains(p.getName())) { > - properties.remove(i); > - } else { > - set.add(p.getName()); > + if (p.getName() != null && !p.getName().equals("")) { > + if (set.contains(p.getName())) { > + properties.remove(i); > + } else { > + set.add(p.getName()); > + } > } > } > Enumeration e = properties.elements(); > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > For additional commands, e-mail: dev-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org