Browse Source

`Converter`支持null转换 [Issue #1776]

pull/2074/head
Jiaju Zhuang 4 years ago
parent
commit
f56f6a04f0
  1. 3
      src/main/java/com/alibaba/excel/write/executor/AbstractExcelWriteExecutor.java

3
src/main/java/com/alibaba/excel/write/executor/AbstractExcelWriteExecutor.java

@ -73,8 +73,7 @@ public abstract class AbstractExcelWriteExecutor implements ExcelWriteExecutor {
}
protected CellData<?> convert(WriteHolder currentWriteHolder, Class<?> clazz, CellDataTypeEnum targetType,
Cell cell,
Object value, ExcelContentProperty excelContentProperty) {
Cell cell, Object value, ExcelContentProperty excelContentProperty) {
// This means that the user has defined the data.
if (value instanceof CellData) {
CellData<?> cellDataValue = (CellData<?>)value;

Loading…
Cancel
Save