fix(测试跟踪): 功能用例回收站恢复报错

This commit is contained in:
chenjianxing 2022-08-30 15:58:49 +08:00 committed by 刘瑞斌
parent 11d2eb2922
commit 9ea4082e4d
1 changed files with 2 additions and 2 deletions

View File

@ -2244,8 +2244,8 @@ public class TestCaseService {
}
public void reduction(TestCaseBatchRequest request) {
List<String> ids = new ArrayList<>();
if (request.getCondition().isSelectAll()) {
List<String> ids;
if (request.getCondition() != null && request.getCondition().isSelectAll()) {
List<TestCaseDTO> allReductionTestCases = listTestCase(request.getCondition());
ids = allReductionTestCases.stream().map(TestCaseDTO::getId).collect(Collectors.toList());
} else {