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

ASF subversion and git services commented on NIFI-1434:
-------------------------------------------------------

Commit 8ef337b65e479cb57bedd8023772e591c02dca74 in nifi's branch 
refs/heads/master from [~rpmiskin]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=8ef337b ]

NIFI-1434 Prevent array index exception in PutEmail

Signed-off-by: jpercivall <[email protected]>


> ArrayIndexOutOfBoundsException in PutEmail if property expansion fails for 
> PutEmail.FROM
> ----------------------------------------------------------------------------------------
>
>                 Key: NIFI-1434
>                 URL: https://issues.apache.org/jira/browse/NIFI-1434
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 0.4.1
>            Reporter: Richard Miskin
>
> If the FROM property in PutEmail evaluates to an empty string an 
> ArrayIndexOutOfBoundsException is thrown from the following code:
> {code:java}
> message.setFrom(InternetAddress.parse(context.getProperty(FROM)
>                  .evaluateAttributeExpressions(flowFile).getValue())[0]);
> {code}
> This leads to the FlowFile not being transferred to the REL_FAILURE 
> relationship and the exception propagates out of the onTrigger method.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to