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

This commit is contained in:
Rubik-W 2020-03-14 19:20:46 +08:00 committed by GitHub
parent a076ae4c36
commit e0389aebf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}