[ 
https://issues.apache.org/jira/browse/NIFI-4326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16149392#comment-16149392
 ] 

ASF GitHub Bot commented on NIFI-4326:
--------------------------------------

Github user kevdoran commented on the issue:

    https://github.com/apache/nifi/pull/2111
  
    Whoops, didn't see this (or the corresponding JIRA) until after I opened a 
ticket and PR for the same issue 
([NIFI-4339](https://issues.apache.org/jira/browse/NIFI-4339), [PR 
2118](https://github.com/apache/nifi/pull/2118)) after it showed up on 
[StackOverflow](https://stackoverflow.com/questions/45927852/nifi-email-consumeimap-filter-by-subject-from-to-and-date/45928680#comment78898203_45928680).
 Looks like I accidentally duplicated your effort @btwood, my apologies. I was 
able to come up with a test case for the issue, see my branch if interested.


> ExtractEmailHeaders.java unhandled Exceptions
> ---------------------------------------------
>
>                 Key: NIFI-4326
>                 URL: https://issues.apache.org/jira/browse/NIFI-4326
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.3.0
>         Environment: jdk 1.8.0_121-b13
>            Reporter: Benjamin Wood
>            Priority: Minor
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> The ExtractEmailHeaders  processor throws a NullPointerException if there is 
> no TO, CC, and BCC recipients.
> If there are no recipients "originalMessage.getAllRecipients()" returns NULL, 
> and not a 0 length array.
> If an address is empty (<> or " ") then getRecipients() will throw an "Empty 
> Address" AddressException
> It's possible this is only an issue with Oracle Java.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to