!2 update GroupVersionCache.java 修复空指针异常
Merge pull request !2 from zhangyu6k/N/A
This commit is contained in:
commit
e46e029ad9
@ -38,6 +38,10 @@ public class GroupVersionCache implements Lifecycle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static long getDdl(String sceneName) {
|
public static long getDdl(String sceneName) {
|
||||||
|
// 缓存初始化时configDTO值为null,可能造成空指针异常
|
||||||
|
if (Objects.isNull(configDTO)){
|
||||||
|
return SystemConstants.DEFAULT_DDL;
|
||||||
|
}
|
||||||
List<Scene> sceneList = configDTO.getSceneList();
|
List<Scene> sceneList = configDTO.getSceneList();
|
||||||
if (CollectionUtils.isEmpty(sceneList)) {
|
if (CollectionUtils.isEmpty(sceneList)) {
|
||||||
return SystemConstants.DEFAULT_DDL;
|
return SystemConstants.DEFAULT_DDL;
|
||||||
|
Loading…
Reference in New Issue
Block a user