]> 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:16:53 +0000 (00:16 +0000)
committerlpsolit%gmail.com <>
Sun, 8 Jan 2006 00:16:53 +0000 (00:16 +0000)
Bugzilla/BugMail.pm

index 982bf6c04970d11e9b1ee8f7d738f4d04a40e473..e4a19d65fb68e1bafee95881606803be14a73c0c 100644 (file)
@@ -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