Browse Source

Merge pull request #819 from pdkst/feature/write_head_with_null

移除添加sheet页前的null校验
2.1.x
Jiaju Zhuang 5 years ago committed by GitHub
parent
commit
2c00f2efb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/main/java/com/alibaba/excel/write/ExcelBuilderImpl.java

6
src/main/java/com/alibaba/excel/write/ExcelBuilderImpl.java

@ -50,9 +50,6 @@ public class ExcelBuilderImpl implements ExcelBuilder {
@Override
public void addContent(List data, WriteSheet writeSheet, WriteTable writeTable) {
try {
if (data == null) {
return;
}
context.currentSheet(writeSheet, WriteTypeEnum.ADD);
context.currentTable(writeTable);
if (excelWriteAddExecutor == null) {
@ -105,9 +102,6 @@ public class ExcelBuilderImpl implements ExcelBuilder {
@Override
public void addContent(List data, WriteSheet writeSheet, WriteTable writeTable, String password) {
try {
if (data == null) {
return;
}
context.currentSheet(writeSheet, WriteTypeEnum.ADD);
context.currentTable(writeTable);
if (excelWriteAddExecutor == null) {

Loading…
Cancel
Save