Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 85398 invoked from network); 23 Feb 2008 14:29:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Feb 2008 14:29:13 -0000 Received: (qmail 65533 invoked by uid 500); 23 Feb 2008 14:29:08 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 65510 invoked by uid 500); 23 Feb 2008 14:29:08 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 65501 invoked by uid 99); 23 Feb 2008 14:29:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Feb 2008 06:29:08 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Feb 2008 14:28:30 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id D9F80234C010; Sat, 23 Feb 2008 06:28:28 -0800 (PST) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: DO NOT REPLY [Bug 44009] - MailLogger failed to send e-mail In-Reply-To: X-Bugzilla-Reason: AssignedTo Message-Id: <20080223142828.D9F80234C010@brutus.apache.org> Date: Sat, 23 Feb 2008 06:28:28 -0800 (PST) X-Virus-Checked: Checked by ClamAV on apache.org 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. https://issues.apache.org/bugzilla/show_bug.cgi?id=44009 ------- Additional Comments From kevin.glynn@gmail.com 2008-02-23 06:28 ------- (In reply to comment #2) > line 216 is the iterator below, at least in SVN_HEAD: > > msg.addHeader("Date", getDate()); > > for (Iterator iter = headers.iterator(); iter.hasNext();) { > Header h = (Header) iter.next(); > msg.addHeader(h.getName(), h.getValue()); > } > > An NPE could be triggered by headers==null. There's nothing in the class > initialiser to set up these headers; it relies on setHeaders() being called, > which presumably, it isnt in this case, or the vector is being set with a null > pointer) > > I'll do two things > -always initialise the vector > -skip the iteration if the vector is null (in case someone assigns a null vector This happens if you are calling the mailer from the MailLogger, i.e.: ant -logger org.apache.tools.ant.listener.MailLogger fred MailLogger.sendMimeMail doesn't set the headers. -- Configure bugmail: https://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.