diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/quota/service/QuotaManagementService.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/quota/service/QuotaManagementService.java index 207cbdd131..ee44730ed8 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/quota/service/QuotaManagementService.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/quota/service/QuotaManagementService.java @@ -79,7 +79,7 @@ public class QuotaManagementService { quota.setResourcePool(String.join(",", intersection)); } - if (ObjectUtils.isNotEmpty(workspaceQuota) && ObjectUtils.isNotEmpty(quota) && StringUtils.isBlank(workspaceQuota.getModuleSetting())) { + if (ObjectUtils.isNotEmpty(workspaceQuota) && ObjectUtils.isNotEmpty(quota) && StringUtils.isNotBlank(workspaceQuota.getModuleSetting())) { List workModules = Arrays.asList(workspaceQuota.getModuleSetting().split(",")); List projectModules = StringUtils.isNotBlank(quota.getModuleSetting()) ? Arrays.asList(quota.getModuleSetting().split(",")) : new ArrayList<>(); List moduleIntersection = workModules.stream()