fix: 缺少xpack获取版本信息报错
This commit is contained in:
parent
3aa76c85fd
commit
21d474fb2c
|
@ -265,6 +265,10 @@ public class ServiceUtils {
|
||||||
|
|
||||||
public static void buildVersionInfo(List<? extends Object> list) {
|
public static void buildVersionInfo(List<? extends Object> list) {
|
||||||
ProjectVersionService projectVersionService = CommonBeanFactory.getBean(ProjectVersionService.class);
|
ProjectVersionService projectVersionService = CommonBeanFactory.getBean(ProjectVersionService.class);
|
||||||
|
if (projectVersionService == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
List<String> versionIds = list.stream()
|
List<String> versionIds = list.stream()
|
||||||
.map(i -> {
|
.map(i -> {
|
||||||
Class<?> clazz = i.getClass();
|
Class<?> clazz = i.getClass();
|
||||||
|
|
Loading…
Reference in New Issue