Skip to content

Commit

Permalink
MapFailureStrategy may return null from SidMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Skaar, Bjørn-Andre committed Apr 9, 2024
1 parent d998033 commit 78b4c16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private Optional<Object> mapOptional(String v, RecordMapProcessor<PseudoMetadata
metadataProcessor.addMetric(FieldMetric.NULL_VALUE);
return Optional.empty();
} else {
return Optional.of(recordMapProcessor.process(Map.of(this.getName(), v)).get(this.getName()));
return Optional.ofNullable(recordMapProcessor.process(Map.of(this.getName(), v)).get(this.getName()));
}
}

Expand Down

0 comments on commit 78b4c16

Please sign in to comment.