[MediaWiki-commits] [Gerrit] mediawiki...ProofreadPage[master]: RepoGroup::findFile() can and will return false
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/394861 ) Change subject: RepoGroup::findFile() can and will return false .. RepoGroup::findFile() can and will return false Bug: T181944 Change-Id: I978ed2f9f3005210f6713a7f3ecde1fe0501a5ff --- M includes/page/DatabaseIndexForPageLookup.php 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: jenkins-bot: Verified Tpt: Looks good to me, approved diff --git a/includes/page/DatabaseIndexForPageLookup.php b/includes/page/DatabaseIndexForPageLookup.php index e71a3c2..3e0125b 100644 --- a/includes/page/DatabaseIndexForPageLookup.php +++ b/includes/page/DatabaseIndexForPageLookup.php @@ -75,7 +75,7 @@ if ( $imageTitle !== null ) { $image = $this->repoGroup->findFile( $imageTitle ); // if it is multipage, we use the page order of the file - if ( $image->exists() && $image->isMultipage() ) { + if ( $image && $image->exists() && $image->isMultipage() ) { return Title::makeTitle( $this->indexNamespaceId, $image->getTitle()->getText() ); -- To view, visit https://gerrit.wikimedia.org/r/394861 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I978ed2f9f3005210f6713a7f3ecde1fe0501a5ff Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ProofreadPage Gerrit-Branch: master Gerrit-Owner: ReedyGerrit-Reviewer: Tpt Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...ProofreadPage[master]: RepoGroup::findFile() can and will return false
Reedy has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/394861 ) Change subject: RepoGroup::findFile() can and will return false .. RepoGroup::findFile() can and will return false Bug: T181944 Change-Id: I978ed2f9f3005210f6713a7f3ecde1fe0501a5ff --- M includes/page/DatabaseIndexForPageLookup.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ProofreadPage refs/changes/61/394861/1 diff --git a/includes/page/DatabaseIndexForPageLookup.php b/includes/page/DatabaseIndexForPageLookup.php index e71a3c2..3e0125b 100644 --- a/includes/page/DatabaseIndexForPageLookup.php +++ b/includes/page/DatabaseIndexForPageLookup.php @@ -75,7 +75,7 @@ if ( $imageTitle !== null ) { $image = $this->repoGroup->findFile( $imageTitle ); // if it is multipage, we use the page order of the file - if ( $image->exists() && $image->isMultipage() ) { + if ( $image && $image->exists() && $image->isMultipage() ) { return Title::makeTitle( $this->indexNamespaceId, $image->getTitle()->getText() ); -- To view, visit https://gerrit.wikimedia.org/r/394861 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I978ed2f9f3005210f6713a7f3ecde1fe0501a5ff Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ProofreadPage Gerrit-Branch: master Gerrit-Owner: Reedy___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits