Index: branches/wmf/1.17wmf1/extensions/Collection/Collection.php |
— | — | @@ -366,7 +366,7 @@ |
367 | 367 | $result = array(); |
368 | 368 | $imagePath = "$wgScriptPath/extensions/Collection/images"; |
369 | 369 | $t = Title::newFromText( $title ); |
370 | | - if ( $t->isRedirect() ) { |
| 370 | + if ( $t && $t->isRedirect() ) { |
371 | 371 | $a = new Article( $t, 0 ); |
372 | 372 | $t = $a->followRedirect(); |
373 | 373 | if ( $t instanceof Title ) { |