Guard against non-object returns from File::getHander()
authorBryan Davis <bd808@wikimedia.org>
Thu, 5 Sep 2013 20:46:38 +0000 (14:46 -0600)
committerBryanDavis <bdavis@wikimedia.org>
Tue, 17 Sep 2013 06:48:43 +0000 (06:48 +0000)
commit176e012fe33b042667484754e3fe112d4eca2c1e
treee466cb8ed08e885582929834de1a60a571d27b2d
parente7ce589265c7500759735d9e5c8ecbd008073fc9
Guard against non-object returns from File::getHander()

MediaHandler::getHandler() can return false when a handler cannot be
determined for the given file's derived mime type. This change adds
guards to invocations that I could find that did not properly check for
this potential return result.

Bug: 53820
Change-Id: I8c0165311cc75f9920ac30ce2b38ccd207439198
includes/filerepo/file/File.php
includes/filerepo/file/LocalFile.php
includes/specials/SpecialUploadStash.php