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

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

Commit 2aa0ee6998e7995fd3deaa669d0121b9edb0f58e in nifi's branch 
refs/heads/main from Matt Burgess
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=2aa0ee6998 ]

NIFI-15435 Added check for empty array in MapRecord.toMap() (#10738)

Signed-off-by: David Handermann <[email protected]>

> MapRecord#toMap fails with empty array in nested record
> -------------------------------------------------------
>
>                 Key: NIFI-15435
>                 URL: https://issues.apache.org/jira/browse/NIFI-15435
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Matt Burgess
>            Assignee: Matt Burgess
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> When calling MapRecord.toMap(true) on a Record having a nested Record with a 
> field containing an empty array, an ArrayIndexOutOfBounds exception is thrown 
> as the current logic checks if the first element is a MapRecord. An 
> additional check should be added to ensure the length of the array is greater 
> than zero.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to