You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Jens Wilmer (JIRA)" <ji...@apache.org> on 2011/05/13 11:11:47 UTC
[jira] [Commented] (TIKA-641) NullPointerException if null is
returned as mailboxlist.
[ 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