Bugfix in parseSheet

This commit is contained in:
Andreas Isler
2025-11-19 08:37:36 +01:00
parent 0cc2304ad8
commit d570e04087
@@ -72,10 +72,8 @@ public class FlowableExcelParser {
ArrayList<ArrayList<String>> sheet = new ArrayList<>(); ArrayList<ArrayList<String>> sheet = new ArrayList<>();
// Count columns of first row // Count columns of first row
int maxCols = getMaxCols(workSheet.getRow(0)); int maxCols = getMaxCols(workSheet.getRow(0));
int lastRowNum = workSheet.getLastRowNum();
DataFormatter dataFormatter = new DataFormatter(); DataFormatter dataFormatter = new DataFormatter();
for (int rowIndex = 0; rowIndex < lastRowNum; rowIndex++) { for (Row workRow : workSheet) {
Row workRow = workSheet.getRow(rowIndex);
ArrayList<String> row = parseRow(workRow, maxCols, formulaEvaluator, dataFormatter); ArrayList<String> row = parseRow(workRow, maxCols, formulaEvaluator, dataFormatter);
if (row == null) { if (row == null) {
// Take all rows until the first empty row // Take all rows until the first empty row