[jira] [Commented] (NIFI-4326) ExtractEmailHeaders.java unhandled NullPointerException

2017-08-28 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on NIFI-4326:
--

Github user btwood commented on the issue:

https://github.com/apache/nifi/pull/2111
  
getAllRecipients() will also throw an Empty Address exception. This causes 
blank addresses (<>, or "") to also not be parsed correctly.


> ExtractEmailHeaders.java unhandled NullPointerException
> ---
>
> 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
>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.
> I've already written a patch and submitted it to github as pull request #2111



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


[jira] [Commented] (NIFI-4326) ExtractEmailHeaders.java unhandled NullPointerException

2017-08-28 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on NIFI-4326:
--

Github user btwood commented on the issue:

https://github.com/apache/nifi/pull/2111
  
Opened a JIRA Issue NIFI-4326


> ExtractEmailHeaders.java unhandled NullPointerException
> ---
>
> 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
>Reporter: Benjamin Wood
>Priority: Minor
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> The ExtractEmailHeaders using  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.
> I've already written a patch and submitted it to github as pull request #2111



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