fix(测试跟踪): 导出用例,校验超长文本时报错
This commit is contained in:
parent
12370956bd
commit
69d635bf52
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue