Github user jfrazee commented on a diff in the pull request: https://github.com/apache/nifi/pull/1807#discussion_r116796084 --- Diff: nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/src/main/java/org/apache/nifi/csv/CSVRecordReader.java --- @@ -68,17 +68,19 @@ public Record nextRecord() throws IOException, MalformedRecordException { final Map<String, Object> rowValues = new HashMap<>(schema.getFieldCount()); for (final RecordField recordField : schema.getFields()) { - String rawValue = csvRecord.get(recordField.getFieldName()); - if (rawValue == null) { + String rawValue = null; + final String fieldName = recordField.getFieldName(); + if (csvRecord.isSet(fieldName)) { + rawValue = csvRecord.get(fieldName); + } else { for (final String alias : recordField.getAliases()) { - rawValue = csvRecord.get(alias); - if (rawValue != null) { + if (csvRecord.isSet(fieldName)) { --- End diff -- @markap14 Shouldn't you be checking isSet(alias)? Since this is in the else, presumably isSet(fieldName) is still false?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---