You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by we...@apache.org on 2021/04/09 03:25:53 UTC
[incubator-dolphinscheduler] branch json_split updated: Fix
dependency failure (#5239)
This is an automated email from the ASF dual-hosted git repository.
wenhemin pushed a commit to branch json_split
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git
The following commit(s) were added to refs/heads/json_split by this push:
new 8c88bfa Fix dependency failure (#5239)
8c88bfa is described below
commit 8c88bfa222119b9f07d89c314df34085f034fdce
Author: JinyLeeChina <42...@users.noreply.github.com>
AuthorDate: Fri Apr 9 11:25:18 2021 +0800
Fix dependency failure (#5239)
Co-authored-by: JinyLeeChina <29...@qq.com>
---
.../java/org/apache/dolphinscheduler/common/model/TaskNode.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java
index 17b6747..c6adc30 100644
--- a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java
+++ b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/TaskNode.java
@@ -211,8 +211,10 @@ public class TaskNode {
}
public void setDepList(List<String> depList) {
- this.depList = depList;
- this.preTasks = JSONUtils.toJsonString(depList);
+ if (depList != null) {
+ this.depList = depList;
+ this.preTasks = JSONUtils.toJsonString(depList);
+ }
}
public String getLoc() {