Index: trunk/extensions/LiquidThreads/classes/View.php |
— | — | @@ -170,6 +170,9 @@ |
171 | 171 | $changed_thread = $revision->getChangeObject(); |
172 | 172 | $curr_rev_id = $changed_thread->rootRevision(); |
173 | 173 | $curr_rev = Revision::newFromId( $curr_rev_id ); |
| 174 | + if ( !$curr_rev ) { |
| 175 | + throw new MWException( "Undefined revision in diffQuery" ); |
| 176 | + } |
174 | 177 | $prev_rev = $curr_rev->getPrevious(); |
175 | 178 | $oldid = $prev_rev ? $prev_rev->getId() : ""; |
176 | 179 | |