From: lpsolit%gmail.com <> Date: Sun, 8 Jan 2006 00:16:53 +0000 (+0000) Subject: Bug 320529: BugMail.pm crashes when checking email prefs of a deleted user - Patch... X-Git-Tag: bugzilla-2.22rc1~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94232797b7ea157c75ee92a9830993fbff1caad1;p=thirdparty%2Fbugzilla.git Bug 320529: BugMail.pm crashes when checking email prefs of a deleted user - Patch by Frédéric Buclin r=wicked a=justdave --- diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index 982bf6c049..e4a19d65fb 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