Index: trunk/extensions/Collection/Collection.php |
— | — | @@ -374,7 +374,7 @@ |
375 | 375 | $result = array(); |
376 | 376 | $imagePath = "$wgScriptPath/extensions/Collection/images"; |
377 | 377 | $t = Title::newFromText( $title ); |
378 | | - if ( $t->isRedirect() ) { |
| 378 | + if ( $t && $t->isRedirect() ) { |
379 | 379 | $a = new Article( $t, 0 ); |
380 | 380 | $t = $a->followRedirect(); |
381 | 381 | if ( $t instanceof Title ) { |