Browse Source

[Improve-13413]Empty dependency operation causes Master null pointer exception (#13420)

2.0.8-prepare
北岭山下 1 year ago committed by GitHub
parent
commit
d95cf93c2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue

4
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: {

Loading…
Cancel
Save