Output blank cells instead of cells containing "null"
This commit is contained in:
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());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user