fix: 缺少xpack获取版本信息报错

This commit is contained in:
AnAngle 2022-05-08 19:14:59 +08:00 committed by 刘瑞斌
parent 3aa76c85fd
commit 21d474fb2c
1 changed files with 4 additions and 0 deletions

View File

@ -265,6 +265,10 @@ public class ServiceUtils {
public static void buildVersionInfo(List<? extends Object> list) {
ProjectVersionService projectVersionService = CommonBeanFactory.getBean(ProjectVersionService.class);
if (projectVersionService == null) {
return;
}
List<String> versionIds = list.stream()
.map(i -> {
Class<?> clazz = i.getClass();