summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/BugMail.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index 982bf6c04..e4a19d65f 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -414,7 +414,9 @@ sub ProcessOneBug {
my $sent_mail = 0;
my $user = new Bugzilla::User($user_id);
-
+ # Deleted users must be excluded.
+ next unless $user;
+
if ($user->can_see_bug($id))
{
# Go through each role the user has and see if they want mail in