summaryrefslogtreecommitdiffstats
path: root/Bugzilla/BugMail.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-01-08 01:16:53 +0100
committerlpsolit%gmail.com <>2006-01-08 01:16:53 +0100
commit94232797b7ea157c75ee92a9830993fbff1caad1 (patch)
treedef1a7bb9e9ac846374707242b2be67c3b79b029 /Bugzilla/BugMail.pm
parent76c3a58cd5e5f040c09258b98727c42f7059a78d (diff)
downloadbugzilla-94232797b7ea157c75ee92a9830993fbff1caad1.tar.gz
bugzilla-94232797b7ea157c75ee92a9830993fbff1caad1.tar.xz
Bug 320529: BugMail.pm crashes when checking email prefs of a deleted user - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=justdave
Diffstat (limited to 'Bugzilla/BugMail.pm')
-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