From c5718f3890535bb27a2db35c1f08b22b05e89ac4 Mon Sep 17 00:00:00 2001 From: "justdave%bugzilla.org" <> Date: Wed, 26 May 2004 14:21:43 +0000 Subject: Bug 227172: Deal with race condition between a user being removed from the CC on a bug and changing their email address before the bugmail is sent. r=jouni, a=justdave --- Bugzilla/BugMail.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Bugzilla/BugMail.pm') diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index 5975c859a..40a40dc2b 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -705,6 +705,9 @@ sub NewProcessOnePerson ($$$$$$$$$$$$$) { # This routine should really get passed a userid # This rederives groups as a side effect my $user = Bugzilla::User->new_from_login($person); + if (!$user) { # person doesn't exist, probably changed email + return; + } my $userid = $user->id; $seen{$person} = 1; -- cgit v1.2.3-24-g4f1b