Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 38197 invoked from network); 11 Aug 2005 20:43:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Aug 2005 20:43:31 -0000 Received: (qmail 15718 invoked by uid 500); 11 Aug 2005 20:43:29 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 15662 invoked by uid 500); 11 Aug 2005 20:43:28 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 15649 invoked by uid 99); 11 Aug 2005 20:43:28 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2005 13:43:28 -0700 Received: by ajax.apache.org (Postfix, from userid 99) id 65905EB; Thu, 11 Aug 2005 22:43:27 +0200 (CEST) From: bugzilla@apache.org To: dev@ant.apache.org Subject: DO NOT REPLY [Bug 36151] New: - PropertySet::addPropertyNames causes NullPointerException X-Bugzilla-Reason: AssignedTo Message-Id: <20050811204327.65905EB@ajax.apache.org> Date: Thu, 11 Aug 2005 22:43:27 +0200 (CEST) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36151 Summary: PropertySet::addPropertyNames causes NullPointerException Product: Ant Version: 1.6.5 Platform: Other OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Core tasks AssignedTo: dev@ant.apache.org ReportedBy: wascallywabbit@earthling.net The function addPropertyNames(Set names, Hashtable properties) does not use the passed in hashtable to check for refitems that use the "name" field. This is a problem for property helper's that have hooks attached. If the property is matched by a hook but is not part of the project's property table (i.e missing from "properties" but non-null for Project.getProperty()), a null value will be returned at line 320 in PropertySet.java. Changing line 346 to: if (prj != null && properties.get(r.name) != null) { should fix the problem. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org