]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 227172: Deal with race condition between a user being removed from the CC on...
authorjustdave%bugzilla.org <>
Wed, 26 May 2004 14:21:43 +0000 (14:21 +0000)
committerjustdave%bugzilla.org <>
Wed, 26 May 2004 14:21:43 +0000 (14:21 +0000)
r=jouni, a=justdave

Bugzilla/BugMail.pm

index 5975c859acc259ba3bb2d176593fc899a8cc94ab..40a40dc2beb49a8488930932b0c3b157c5c7f361 100644 (file)
@@ -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;