Skip to content

Commit

Permalink
Cross Tab report generates corrupted xlsx file cuba-platform/reports#239
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaShchienko committed Jan 29, 2020
1 parent 885c383 commit 69d8bab
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ protected List<BandData> traverseData(ExtractionContext context, List<Map<String
return horizontal;
}).collect(Collectors.toList());

if (verticalData.isEmpty()) {
verticalData.add(wrapData(context, null));
}

return Stream.concat(Stream.of(header), verticalData.stream()).collect(Collectors.toList());
}

Expand Down

0 comments on commit 69d8bab

Please sign in to comment.