Skip to content

Commit

Permalink
Merge pull request #179 from cuba-platform/178-xlsx-report-index-out-…
Browse files Browse the repository at this point in the history
…of-bounds-exception

Xlsx-report causes 'Index out of bounds' exception #178
  • Loading branch information
Gavrilov-Ivan committed Mar 27, 2023
2 parents 6aed66b + 7ecfb13 commit 03847b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ protected List<Cell> copyCells(BandData band, Range templateRange, List<Row> res
List<Cell> templateCells = new ArrayList<>(cellsForOneRowRange.values());
Row templateRow = !templateCells.isEmpty() ?
(Row) templateCells.get(0).getParent() :
resultSheet.getSheetData().getRow().get(oneRowRange.getFirstRow() - 1);
resultSheetRows.get((int) (firstRow.getR() + i - 1));

createFakeTemplateCellsForEmptyOnes(oneRowRange, cellsForOneRowRange, templateCells);

Expand Down

0 comments on commit 03847b0

Please sign in to comment.