fix bug: start from the setting nodes with NODE_PRE would be NPE. (#4219)

This commit is contained in:
bao liang 2020-12-13 12:17:43 +08:00 committed by GitHub
parent e033f81e9d
commit b694474c78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -398,6 +398,9 @@ public class DagHelper {
DAG<String, TaskNode, TaskNodeRelation> dag,
Map<String, TaskInstance> completeTaskList,
Map<String, TaskNode> skipTaskNodeList) {
if (!dag.containsNode(skipNodeName)) {
return;
}
skipTaskNodeList.putIfAbsent(skipNodeName, dag.getNode(skipNodeName));
Collection<String> postNodeList = dag.getSubsequentNodes(skipNodeName);
for (String post : postNodeList) {