Browse Source

fix a npe

Update ConverterUtils.java
pull/3949/head
721806280 5 months ago committed by GitHub
parent
commit
2c74112e3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      easyexcel-core/src/main/java/com/alibaba/excel/util/ConverterUtils.java

2
easyexcel-core/src/main/java/com/alibaba/excel/util/ConverterUtils.java

@ -48,7 +48,7 @@ public class ConverterUtils {
index++;
}
index++;
if (cellData.getType() == CellDataTypeEnum.EMPTY) {
if (cellData.getType() == null || cellData.getType() == CellDataTypeEnum.EMPTY) {
stringMap.put(key, null);
continue;
}

Loading…
Cancel
Save