Skip to content

Commit

Permalink
[Fix-14828][master] check task id not null to avoid NPE (#14829)
Browse files Browse the repository at this point in the history
Co-authored-by: eye <eye.gu@aloudata.com>
Co-authored-by: Aaron Wang <wangweirao16@gmail.com>
Co-authored-by: caishunfeng <caishunfeng2021@gmail.com>
  • Loading branch information
4 people authored Aug 31, 2023
1 parent 6e5870d commit 33525a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1897,7 +1897,7 @@ public void submitStandByTask() throws StateEventHandleException {
TaskInstance task;
while ((task = readyToSubmitTaskQueue.peek()) != null) {
// stop tasks which is retrying if forced success happens
if (task.taskCanRetry()) {
if (task.getId() != null && task.taskCanRetry()) {
TaskInstance retryTask = taskInstanceDao.queryById(task.getId());
if (retryTask != null && retryTask.getState().isForceSuccess()) {
task.setState(retryTask.getState());
Expand Down

0 comments on commit 33525a1

Please sign in to comment.