Merge branch 'master' of https://github.com/metersphere/metersphere
This commit is contained in:
commit
6ac294702d
|
@ -115,7 +115,9 @@ public class ApiAutomationService {
|
|||
if (map != null) {
|
||||
if (map.isEmpty()) {
|
||||
List<String> ids = (List<String>) JSONPath.read(definition, "$..projectId");
|
||||
idList.addAll(new HashSet<>(ids));
|
||||
if (CollectionUtils.isNotEmpty(ids)) {
|
||||
idList.addAll(new HashSet<>(ids));
|
||||
}
|
||||
} else {
|
||||
Set<String> set = d.getEnvironmentMap().keySet();
|
||||
idList = new ArrayList<>(set);
|
||||
|
|
Loading…
Reference in New Issue