From 785b888a2217c92db303f3e08b92e8f5bb046765 Mon Sep 17 00:00:00 2001 From: Reedy Date: Tue, 7 Jan 2014 20:04:14 +0000 Subject: [PATCH] Call to a member function getCommonMetaArray() on a non-object at File.php on line 586 Bug: 59785 Change-Id: I7163f3fd122922a28519b7cb1d3d4cd4b81165ee --- includes/filerepo/file/File.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/filerepo/file/File.php b/includes/filerepo/file/File.php index dc35016d1f..c9e435e5a1 100644 --- a/includes/filerepo/file/File.php +++ b/includes/filerepo/file/File.php @@ -583,6 +583,9 @@ abstract class File { public function getCommonMetaArray() { $handler = $this->getHandler(); + if ( !$handler ) { + return false; + } return $handler->getCommonMetaArray( $this ); } -- 2.20.1