[
https://issues.apache.org/jira/browse/NIFI-15435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Handermann updated NIFI-15435:
------------------------------------
Affects Version/s: 2.7.2
2.0.0
> 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
> Affects Versions: 2.0.0, 2.7.2
> 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)