This commit is contained in:
Looly 2023-02-09 19:45:01 +08:00
parent 2ee6fd8938
commit a7ea726968

View File

@ -216,7 +216,10 @@ public class Excel03SaxReader implements HSSFListener, ExcelSaxReader<Excel03Sax
if(this.rid < 0 && null != this.sheetName){
throw new POIException("Sheet [{}] not exist!", this.sheetName);
}
processLastCellSheet();
if(this.curRid != -1 && isProcessCurrentSheet()) {
//只有在当前指定的sheet中才触发结束事件且curId=-1时也不处理避免重复调用
processLastCellSheet();
}
} else if (isProcessCurrentSheet()) {
if (record instanceof MissingCellDummyRecord) {
// 空值的操作