From 69d635bf522288fc139a6d7b11ae3b6a3ed63bbc Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 31 Mar 2023 18:16:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E7=94=A8=E4=BE=8B=EF=BC=8C=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E8=B6=85=E9=95=BF=E6=96=87=E6=9C=AC=E6=97=B6=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/io/metersphere/service/TestCaseService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java index 44dd2beb17..5683ecb03b 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java @@ -1746,7 +1746,7 @@ public class TestCaseService { private void validateExportText(String name, String textValue) { // poi 导出的单个单元格最大字符数量为 32767 ,这里添加校验提示 int maxLength = 32767; - if (textValue.length() > maxLength) { + if (StringUtils.isNotBlank(textValue) && textValue.length() > maxLength) { MSException.throwException(String.format(Translator.get("case_export_text_validate_tip"), name, maxLength)); } }