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 <[email protected]>
AuthorDate: Fri Apr 9 11:25:18 2021 +0800
Fix dependency failure (#5239)
Co-authored-by: JinyLeeChina <[email protected]>
---
.../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() {