From 21d474fb2cc42e06c95aad2fb41f5007716debb7 Mon Sep 17 00:00:00 2001 From: AnAngle <1323481023@qq.com> Date: Sun, 8 May 2022 19:14:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BC=BA=E5=B0=91xpack=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=89=88=E6=9C=AC=E4=BF=A1=E6=81=AF=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/metersphere/commons/utils/ServiceUtils.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/main/java/io/metersphere/commons/utils/ServiceUtils.java b/backend/src/main/java/io/metersphere/commons/utils/ServiceUtils.java index 065a951872..9e4f16ded2 100644 --- a/backend/src/main/java/io/metersphere/commons/utils/ServiceUtils.java +++ b/backend/src/main/java/io/metersphere/commons/utils/ServiceUtils.java @@ -265,6 +265,10 @@ public class ServiceUtils { public static void buildVersionInfo(List list) { ProjectVersionService projectVersionService = CommonBeanFactory.getBean(ProjectVersionService.class); + if (projectVersionService == null) { + return; + } + List versionIds = list.stream() .map(i -> { Class clazz = i.getClass();