From 272fa27ce13902cd18fd950316a583be9bfe7e89 Mon Sep 17 00:00:00 2001 From: canonical Date: Wed, 22 Jan 2025 17:54:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=A9=BA=E6=8C=87=E9=92=88?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nop/report/core/imp/ExcelTemplateToXptModelTransformer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nop-report/nop-report-core/src/main/java/io/nop/report/core/imp/ExcelTemplateToXptModelTransformer.java b/nop-report/nop-report-core/src/main/java/io/nop/report/core/imp/ExcelTemplateToXptModelTransformer.java index 0b56cf06f..9ef16735d 100644 --- a/nop-report/nop-report-core/src/main/java/io/nop/report/core/imp/ExcelTemplateToXptModelTransformer.java +++ b/nop-report/nop-report-core/src/main/java/io/nop/report/core/imp/ExcelTemplateToXptModelTransformer.java @@ -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);