Browse Source

fix: NullPointException in the case of task queuing (#2175)

pull/3/MERGE
Rubik-W 5 years ago committed by gaojun2048
parent
commit
e7c7cea4af
  1. 2
      dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/MasterExecThread.java

2
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/MasterExecThread.java

@ -1062,7 +1062,7 @@ public class MasterExecThread implements Runnable {
TaskInstance taskInstance = taskExecThread.getTaskInstance();
taskInstance = processService.findTaskInstanceById(taskInstance.getId());
if(taskInstance.getState().typeIsFinished()){
if(taskInstance != null && taskInstance.getState().typeIsFinished()){
continue;
}

Loading…
Cancel
Save