fix(测试跟踪): 导出用例,校验超长文本时报错

This commit is contained in:
chenjianxing 2023-03-31 18:16:52 +08:00 committed by jianxing
parent 12370956bd
commit 69d635bf52
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
}