Index: branches/wmf/1.16wmf4/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -345,7 +345,7 @@ |
346 | 346 | $revisionAuthor = $revision->getWikiUser(); |
347 | 347 | |
348 | 348 | //Add the followup revision author if they have not already been added as a commentor (they won't want dupe emails!) |
349 | | - if ( !array_key_exists( $revisionAuthor->getId(), $users ) ) { |
| 349 | + if ( $revisionAuthor && !array_key_exists( $revisionAuthor->getId(), $users ) ) { |
350 | 350 | $users[$revisionAuthor->getId()] = $revisionAuthor; |
351 | 351 | } |
352 | 352 | |