Skip to content

Commit

Permalink
解决没有任何任务时报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKerouac committed Feb 12, 2025
1 parent d126816 commit 8a8a3f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public DefaultTaskCacheQueue(TaskQueueConfig config, AsyncTaskRepository reposit
return;
}

if (taskTypeGroup.isEmpty()) {
if (taskTypeGroup == null || taskTypeGroup.isEmpty()) {
LOGGER.info("当前需要处理的任务{}为: [{}], 当前实际无法处理任何任务", contain ? "白名单" : "黑名单", allTaskTypeGroup);
return;
}
Expand Down

0 comments on commit 8a8a3f9

Please sign in to comment.