MaxSem has uploaded a new change for review.
https://gerrit.wikimedia.org/r/86724
Change subject: Fix exception on null parser output
......................................................................
Fix exception on null parser output
Bug: 49842
Change-Id: I45d1a94905e7908e19b1fe0aa73e32c46069386a
---
M GeoDataHooks.php
1 file changed, 5 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GeoData
refs/changes/24/86724/1
diff --git a/GeoDataHooks.php b/GeoDataHooks.php
index 29dae54..3bac0c3 100644
--- a/GeoDataHooks.php
+++ b/GeoDataHooks.php
@@ -237,8 +237,11 @@
$wp = WikiPage::factory( $file->getTitle() );
$po = new ParserOptions();
$pout = $wp->getParserOutput( $po );
- $lu = new LinksUpdate( $file->getTitle(), $pout );
- self::onLinksUpdate( $lu );
+ if ( $pout ) {
+ wfDebugLog( 'mobile', __METHOD__ . "(): no parser
output returned for file {$file->getName()}" );
+ $lu = new LinksUpdate( $file->getTitle(), $pout );
+ self::onLinksUpdate( $lu );
+ }
wfProfileOut( __METHOD__ );
return true;
}
--
To view, visit https://gerrit.wikimedia.org/r/86724
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I45d1a94905e7908e19b1fe0aa73e32c46069386a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GeoData
Gerrit-Branch: master
Gerrit-Owner: MaxSem <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits