From 7f73938c5d64e5f7e6b1fd96702c677a1e5e50af Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Mon, 28 Nov 2022 14:48:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0xpack=E6=9D=83=E9=99=90=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E9=A1=B9=E7=9B=AE=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --user=郭雨琦 --- .../java/io/metersphere/service/SystemProjectService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/system-setting/backend/src/main/java/io/metersphere/service/SystemProjectService.java b/system-setting/backend/src/main/java/io/metersphere/service/SystemProjectService.java index a098e9c213..cda747d9c2 100644 --- a/system-setting/backend/src/main/java/io/metersphere/service/SystemProjectService.java +++ b/system-setting/backend/src/main/java/io/metersphere/service/SystemProjectService.java @@ -123,7 +123,10 @@ public class SystemProjectService { // 设置默认的通知 baseProjectMapper.setDefaultMessageTask(project.getId()); - quotaService.projectUseDefaultQuota(pjId); + if (quotaService != null) { + quotaService.projectUseDefaultQuota(pjId); + } + // 创建默认版本 addProjectVersion(project); // 初始化项目应用管理