Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8180 from christophd/backport/8178/fix-empty-shee…
Browse files Browse the repository at this point in the history
…t-values

[Backport-1.9.x](#8125): Fix empty values handling in Google sheets
  • Loading branch information
christophd committed Apr 2, 2020
2 parents 31d802b + 9af73a5 commit 99319e9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ private void beforeProducer(Exchange exchange) throws IOException {
.entrySet()
.stream()
.filter(specEntry -> !Objects.equals("spreadsheetId", specEntry.getKey()))
.forEach(specEntry -> rangeValues.add(dataShape.getOrDefault(specEntry.getKey(), "")));
.forEach(specEntry -> rangeValues.add(Optional.ofNullable(dataShape.get(specEntry.getKey()))
.orElse("")));

values.add(rangeValues);
}
Expand Down

0 comments on commit 99319e9

Please sign in to comment.