Browse Source

[Improvement-13413] [Master] Empty dependency operation causes Master null pointer exception (#13457)

2.0.8-release
Molin Wang 2 years ago committed by GitHub
parent
commit
3130810bdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/task/dependent/DependentParameters.java

3
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/task/dependent/DependentParameters.java

@ -16,6 +16,7 @@
*/
package org.apache.dolphinscheduler.common.task.dependent;
import org.apache.commons.collections.CollectionUtils;
import org.apache.dolphinscheduler.common.enums.DependentRelation;
import org.apache.dolphinscheduler.common.model.DependentTaskModel;
import org.apache.dolphinscheduler.common.process.ResourceInfo;
@ -33,7 +34,7 @@ public class DependentParameters extends AbstractParameters {
@Override
public boolean checkParameters() {
return true;
return CollectionUtils.isNotEmpty(dependTaskList) && relation != null;
}
@Override

Loading…
Cancel
Save