Pwirth has uploaded a new change for review. https://gerrit.wikimedia.org/r/255417
Change subject: BsExtendedSearch: Fixed Fatal in indexCrawledDocuments ...................................................................... BsExtendedSearch: Fixed Fatal in indexCrawledDocuments * Added is_null after wfLocalFile before proccessing Change-Id: If2a221efd5d3642399b982f882653adbf6e13afc --- M ExtendedSearch/includes/BuildIndex/BuildIndexMwRepository.class.php 1 file changed, 3 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions refs/changes/17/255417/1 diff --git a/ExtendedSearch/includes/BuildIndex/BuildIndexMwRepository.class.php b/ExtendedSearch/includes/BuildIndex/BuildIndexMwRepository.class.php index 90ef0e1..810340c 100644 --- a/ExtendedSearch/includes/BuildIndex/BuildIndexMwRepository.class.php +++ b/ExtendedSearch/includes/BuildIndex/BuildIndexMwRepository.class.php @@ -97,6 +97,9 @@ $oTitle = Title::newFromText( $document->img_name, NS_FILE ); $oFile = wfLocalFile( $oTitle ); + if( is_null($oFile) ) { + continue; + } $sVirtualPath = $oFile->getPath(); $oFileRepoLocalRef = $oFile->getRepo()->getLocalReference( $sVirtualPath ); if ( is_null( $oFileRepoLocalRef ) ) continue; -- To view, visit https://gerrit.wikimedia.org/r/255417 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If2a221efd5d3642399b982f882653adbf6e13afc Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions Gerrit-Branch: master Gerrit-Owner: Pwirth <wi...@hallowelt.biz> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits