[ https://issues.apache.org/jira/browse/NIFI-4326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16166809#comment-16166809 ]
ASF GitHub Bot commented on NIFI-4326: -------------------------------------- Github user btwood commented on the issue: https://github.com/apache/nifi/pull/2111 This is done. This PR does the following: - Handles the Null Pointer Exception when parsing email addresses (lack of address will not cause the Processors to fail) - Adds the "Use Strict Address Parsing" Property to the ExtractEmailHeaders Processor to allow the user to tune the strictness of email address parsing - Relaxes the strict email address requirement on the ExtractEmailAttachments Processor (from email doesn't need to be valid and is not used in the internal logic of the Processor) - Adds unit tests for non-strict address parsing - Fixes GennerateAttachment.java to return the correct value Submitting this for review and merge. > 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)