Skip to content

Commit d7d8726

Browse files
committed
fix: batchEditNodeContent bug 2
1 parent c982a00 commit d7d8726

File tree

1 file changed

+4
-1
lines changed
  • dss-orchestrator/orchestrators/dss-workflow/dss-workflow-server/src/main/java/com/webank/wedatasphere/dss/workflow/service/impl

1 file changed

+4
-1
lines changed

dss-orchestrator/orchestrators/dss-workflow/dss-workflow-server/src/main/java/com/webank/wedatasphere/dss/workflow/service/impl/DSSFlowServiceImpl.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3017,7 +3017,10 @@ public BatchEditNodeContentResponse batchEditNodeContent(BatchEditNodeContentReq
30173017

30183018
flowMap.put(flow.getId(),flow);
30193019

3020-
flowNodeMap.getOrDefault(flow.getId(), new ArrayList<>()).add(nodeContent.getNodeName());
3020+
if(!flowNodeMap.containsKey(flow.getId())){
3021+
flowNodeMap.put(flow.getId(),new ArrayList<>());
3022+
}
3023+
flowNodeMap.get(flow.getId()).add(nodeContent.getNodeName());
30213024

30223025
}
30233026

0 commit comments

Comments
 (0)