From 94232797b7ea157c75ee92a9830993fbff1caad1 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 8 Jan 2006 00:16:53 +0000 Subject: =?UTF-8?q?Bug=20320529:=20BugMail.pm=20crashes=20when=20checking?= =?UTF-8?q?=20email=20prefs=20of=20a=20deleted=20user=20-=20Patch=20by=20F?= =?UTF-8?q?r=C3=A9d=C3=A9ric=20Buclin=20=20r=3Dwicked?= =?UTF-8?q?=20a=3Djustdave?= 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(-) 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.1