Skip to content

Commit

Permalink
Fix null pointer exception occurs in alert (#3828)
Browse files Browse the repository at this point in the history
Co-authored-by: gaoyan1998 <[email protected]>
Co-authored-by: GH Action - Upstream Sync <[email protected]>
  • Loading branch information
3 people authored Sep 24, 2024
1 parent 596fa53 commit 0f52cb2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<User> maintainerInfo = Lists.newArrayList();
if (CollectionUtils.isNotEmpty(task.getSecondLevelOwners())) {
for (Integer secondLevelOwner : task.getSecondLevelOwners()) {
Expand Down

0 comments on commit 0f52cb2

Please sign in to comment.