]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 320529: BugMail.pm crashes when checking email prefs of a deleted user - Patch...
authorlpsolit%gmail.com <>
Sun, 8 Jan 2006 00:23:10 +0000 (00:23 +0000)
committerlpsolit%gmail.com <>
Sun, 8 Jan 2006 00:23:10 +0000 (00:23 +0000)
Bugzilla/BugMail.pm

index a679b377a9da9cf988fb5ebe3325bb67d65fa4ef..98420f51d2d414072c69c4f2581edfa1c2c89164 100644 (file)
@@ -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