From dev-return-5225-apmail-tika-dev-archive=tika.apache.org@tika.apache.org Fri May 13 09:12:29 2011 Return-Path: X-Original-To: apmail-tika-dev-archive@www.apache.org Delivered-To: apmail-tika-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C26EB4B4C for ; Fri, 13 May 2011 09:12:29 +0000 (UTC) Received: (qmail 77300 invoked by uid 500); 13 May 2011 09:12:29 -0000 Delivered-To: apmail-tika-dev-archive@tika.apache.org Received: (qmail 77269 invoked by uid 500); 13 May 2011 09:12:29 -0000 Mailing-List: contact dev-help@tika.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tika.apache.org Delivered-To: mailing list dev@tika.apache.org Received: (qmail 77261 invoked by uid 99); 13 May 2011 09:12:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2011 09:12:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2011 09:12:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 565C388E43 for ; Fri, 13 May 2011 09:11:47 +0000 (UTC) Date: Fri, 13 May 2011 09:11:47 +0000 (UTC) From: "Jens Wilmer (JIRA)" To: dev@tika.apache.org Message-ID: <1787442432.9502.1305277907350.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <534141439.64096.1303125665748.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (TIKA-641) NullPointerException if null is returned as mailboxlist. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TIKA-641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13032924#comment-13032924 ] Jens Wilmer commented on TIKA-641: ---------------------------------- When parsing a mailheader containing no valid adress mime4j eventually returns null as the "mailboxList". Adding no Adresses would be my expected behaviour, but tika instead of that just exits with a null pointer exception. > NullPointerException if null is returned as mailboxlist. > -------------------------------------------------------- > > Key: TIKA-641 > URL: https://issues.apache.org/jira/browse/TIKA-641 > Project: Tika > Issue Type: Wish > Components: parser > Affects Versions: 0.9 > Environment: All > Reporter: Jens Wilmer > Priority: Trivial > Labels: mail, rfc822parser > Attachments: MailContentHandler.patch > > Original Estimate: 5m > Remaining Estimate: 5m > > Variable mailboxList should be checked to be non null before iterating over it to avoid NullPointerException. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira