diff --git a/dinky-admin/src/main/java/org/dinky/job/handler/JobAlertHandler.java b/dinky-admin/src/main/java/org/dinky/job/handler/JobAlertHandler.java index 61a263e485..b285061e00 100644 --- a/dinky-admin/src/main/java/org/dinky/job/handler/JobAlertHandler.java +++ b/dinky-admin/src/main/java/org/dinky/job/handler/JobAlertHandler.java @@ -249,7 +249,8 @@ private void executeAlertAction(Facts facts, AlertRuleDTO alertRuleDTO) throws E if (!Asserts.isNull(task.getAlertGroup())) { // 获取任务的责任人和维护人对应的用户信息|Get the responsible person and maintainer of the task - User ownerInfo = userCache.get(task.getFirstLevelOwner()); + Integer owner = task.getFirstLevelOwner(); + User ownerInfo = owner == null ? null : userCache.get(owner); List maintainerInfo = Lists.newArrayList(); if (CollectionUtils.isNotEmpty(task.getSecondLevelOwners())) { for (Integer secondLevelOwner : task.getSecondLevelOwners()) {