Skip to content

Commit

Permalink
Merge pull request DependencyTrack#2576 from syalioune/fix/issue-2420…
Browse files Browse the repository at this point in the history
…-empty-mail-content

Fix: Null subject on project audit change notification mails

Closes DependencyTrack#2420
  • Loading branch information
nscuro committed Mar 8, 2023
2 parents f35b129 + e49d539 commit 416f824
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -116,7 +116,7 @@ public Notification restrictNotificationToRuleProjects(Notification initialNotif
}

private boolean canRestrictNotificationToRuleProjects(Notification initialNotification, NotificationRule rule) {
return (initialNotification.getSubject() instanceof NewVulnerabilityIdentified || initialNotification.getSubject() instanceof AnalysisDecisionChange) &&
return initialNotification.getSubject() instanceof NewVulnerabilityIdentified &&
rule.getProjects() != null
&& rule.getProjects().size() > 0;
}
Expand Down

0 comments on commit 416f824

Please sign in to comment.