This is an automated email from the ASF dual-hosted git repository.
jinyleechina pushed a commit to branch 2.0.8-prepare
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/2.0.8-prepare by this push:
new d95cf93c2a [Improve-13413]Empty dependency operation causes Master
null pointer exception (#13420)
d95cf93c2a is described below
commit d95cf93c2a4ec5058c4d54b8d83078951c76e692
Author: 北岭山下 <[email protected]>
AuthorDate: Mon Jan 30 16:03:28 2023 +0800
[Improve-13413]Empty dependency operation causes Master null pointer
exception (#13420)
---
.../src/js/conf/home/pages/dag/_source/formModel/formModel.vue | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue
b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue
index 1bc44a0997..d930efacad 100644
---
a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue
+++
b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue
@@ -747,6 +747,10 @@
}
this.successBranch && (this.conditionResult.successNode[0] =
this.successBranch)
this.failedBranch && (this.conditionResult.failedNode[0] =
this.failedBranch)
+ // Empty dependency requires default value,otherwise master NPE
+ if (this.cacheDependence.dependTaskList == null) {
+ this.cacheDependence = Object.assign(this.cacheDependence, {
dependTaskList: [], relation: 'AND' })
+ }
this.$emit('addTaskInfo', {
item: {