Github user pvillard31 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2122#discussion_r138177766
--- Diff:
nifi-commons/nifi-record-path/src/main/java/org/apache/nifi/record/path/paths/WildcardIndexPath.java
---
@@ -65,9 +65,13 @@
} else {
final Object[] array = (Object[]) value;
return IntStream.range(0, array.length)
+ .filter(index -> array[index] != null
+ || (((ArrayDataType)
fieldValue.getField().getDataType()).getElementType()).getFieldType() !=
RecordFieldType.RECORD)
--- End diff --
I pushed another commit to address it in ChildPath. Let me know if it
sounds better.
---