Index: trunk/phase3/includes/Title.php |
— | — | @@ -2977,6 +2977,9 @@ |
2978 | 2978 | |
2979 | 2979 | # Save a null revision in the page's history notifying of the move |
2980 | 2980 | $nullRevision = Revision::newNullRevision( $dbw, $oldid, $comment, true ); |
| 2981 | + if ( !is_object( $nullRevision ) ) { |
| 2982 | + throw new MWException( 'No valid null revision produced in ' . __METHOD__ ); |
| 2983 | + } |
2981 | 2984 | $nullRevId = $nullRevision->insertOn( $dbw ); |
2982 | 2985 | |
2983 | 2986 | $article = new Article( $this ); |