diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/business/service/impl/VectorDataServiceImpl.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/business/service/impl/VectorDataServiceImpl.java index 6e5b1fa..eb82c3f 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/business/service/impl/VectorDataServiceImpl.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/business/service/impl/VectorDataServiceImpl.java @@ -96,6 +96,9 @@ public class VectorDataServiceImpl implements VectorDataService { @Override public List getScadaCanvas() { List list = scadaClient.listCanvas().getData(); + if (null == list || list.isEmpty()) { + return new LinkedList<>(); + } List projectIds = list.stream().map(CanvasInfo::getProjectId).collect(Collectors.toList()); List nameList = projectClient.getProjectNameList(projectIds).getData(); if (null == nameList || nameList.isEmpty()) {