From 94232797b7ea157c75ee92a9830993fbff1caad1 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 8 Jan 2006 00:16:53 +0000 Subject: Bug 320529: BugMail.pm crashes when checking email prefs of a deleted user - Patch by Frédéric Buclin r=wicked a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/BugMail.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Bugzilla') 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 -- cgit v1.2.3-24-g4f1b