Browse Source

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

pull/2/head
Rubik-W 5 years ago committed by GitHub
parent
commit
e0389aebf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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