[
https://issues.apache.org/jira/browse/NIFI-4326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16174744#comment-16174744
]
ASF subversion and git services commented on NIFI-4326:
-------------------------------------------------------
Commit 90ed08ec338d014d6ed5ae6ab2b14f230ccd724a in nifi's branch
refs/heads/master from btwood
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=90ed08e ]
NIFI-4326 Fix NullPointerException and strict addressing
This uses parseHeader() instead of getFrom() and getRecipients() in order to
avoid strict addressing.
It also checks for null to solve a null pointer exception.
By contract, this processor should grab information "if available". Which means
it should not fail if the info is unavailable.
Signed-off-by: Pierre Villard <[email protected]>
This closes #2111.
> 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
> openjdk 8u131-b11
> Reporter: Benjamin Wood
> Assignee: 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
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)