tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Wilmer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-641) NullPointerException if null is returned as mailboxlist.
Date Fri, 13 May 2011 09:11:47 GMT

    [ 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

Mime
View raw message