jenkins-bot has submitted this change and it was merged. Change subject: Fix Fatal error: Call to a member function doTransform() ......................................................................
Fix Fatal error: Call to a member function doTransform() Bug: 64152 Change-Id: I7483c8b7ec75f5149998da2b530ca0467ac70de7 --- M TimedMediaThumbnail.php 1 file changed, 10 insertions(+), 2 deletions(-) Approvals: Reedy: Looks good to me, approved jenkins-bot: Verified diff --git a/TimedMediaThumbnail.php b/TimedMediaThumbnail.php index 55f4290..7775744 100644 --- a/TimedMediaThumbnail.php +++ b/TimedMediaThumbnail.php @@ -198,8 +198,16 @@ "width" => $options['width'], "height" => $options['height'] ); - $scaledThumb = $thumbFile->getHandler()->doTransform( $thumbFile, - $options['dstPath'], $options['dstPath'], $thumbParams ); + $handler = $thumbFile->getHandler(); + if ( !$handler ) { + return false; + } + $scaledThumb = $handler->doTransform( + $thumbFile, + $options['dstPath'], + $options['dstPath'], + $thumbParams + ); if ( !$scaledThumb || $scaledThumb->isError() ) { return $scaledThumb; -- To view, visit https://gerrit.wikimedia.org/r/127618 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I7483c8b7ec75f5149998da2b530ca0467ac70de7 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/TimedMediaHandler Gerrit-Branch: wmf/1.23wmf22 Gerrit-Owner: Reedy <re...@wikimedia.org> Gerrit-Reviewer: Reedy <re...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits