Output blank cells instead of cells containing "null"

This commit is contained in:
Andreas Svanberg 2025-03-04 14:30:43 +01:00
parent 76fec94389
commit 5066f6d796

@ -72,7 +72,9 @@ public class ExcelExporter extends AbstractDataExporter {
for (int i = 0; i < columns.size(); i++) {
Object cellValue = columns.get(i).getDataModel(data).getObject();
Cell cell = row.createCell(i);
cell.setCellValue(String.valueOf(cellValue));
if (cellValue != null) {
cell.setCellValue(cellValue.toString());
}
}
}
}