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

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

Github user kevdoran commented on the issue:

    https://github.com/apache/nifi/pull/2111
  
    @btwood Thanks! 
    
    I think they are close enough that I still consider them duplicates -- or 
more precisely, my patch is a subset of the issues yours addresses, as you have 
also added handling for non-strict addresses. Your changes should fix the case 
reported on StackOverflow, which is what my PR was intended to solve, but as I 
don't have access to that data the OP on SO will have to verify. I've 
encouraged that in a comment there.
    
    I think the best thing to do is for me to close my current PR and instead 
submit a patch to your branch that adds my unit test case. Would you be open to 
that?


> 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
>             Fix For: 1.4.0
>
>   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