Skip to content

Commit

Permalink
增加空指针判断
Browse files Browse the repository at this point in the history
  • Loading branch information
entropy-cloud committed Jan 22, 2025
1 parent cf2a7b3 commit 272fa27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public void beginList(int rowIndex, int colIndex,
}

ExcelCell cell = (ExcelCell) getTable().getCell(rowIndex, colIndex);
if (StringHelper.isNumber(cell.getText())) {
if (cell != null && StringHelper.isNumber(cell.getText())) {
XptCellModel cellModel = cell.makeModel();
initCellField(cellModel, range, fieldModel.getFieldName());
cellModel.setExpandType(XptExpandType.r);
Expand Down

0 comments on commit 272fa27

Please sign in to comment.