Matt Burgess created NIFI-15435:
-----------------------------------

             Summary: 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


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