From: lpsolit%gmail.com <> Date: Sun, 8 Jan 2006 00:23:10 +0000 (+0000) Subject: Bug 320529: BugMail.pm crashes when checking email prefs of a deleted user - Patch... X-Git-Tag: bugzilla-2.20.1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffc65dbf963cf4fc1541d465ea40232c61232965;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 a679b377a9..98420f51d2 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -422,7 +422,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