Browse Source

Merge branch 'bugfix' into developing

# Conflicts:
#	src/main/java/com/alibaba/excel/write/executor/ExcelWriteFillExecutor.java
developing
Jiaju Zhuang 3 years ago
parent
commit
3fadb3936e
  1. 3
      src/main/java/com/alibaba/excel/write/executor/ExcelWriteFillExecutor.java

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

@ -367,6 +367,9 @@ public class ExcelWriteFillExecutor extends AbstractExcelWriteExecutor {
return analysisCellList;
}
Sheet sheet = writeContext.writeSheetHolder().getCachedSheet();
if (sheet.getLastRowNum() == 0) {
throw new ExcelCommonException(sheet.getSheetName() + " not exists in the excel to be written");
}
Map<String, Set<Integer>> firstRowCache = MapUtils.newHashMapWithExpectedSize(8);
for (int i = 0; i <= sheet.getLastRowNum(); i++) {
Row row = sheet.getRow(i);

Loading…
Cancel
Save