Skip to content

Commit 075a868

Browse files
authored
Merge pull request #32 from SemanticMediaWiki/PeterTheOne-patch-1
add check for null getExtensionData for 'smwdata'
2 parents cb85bb1 + 283cd98 commit 075a868

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Assignees.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ private function getProperties( $propertyString, $article, $revision ) {
208208

209209
/** @var $semanticData \SMW\SemanticData */
210210
$semanticData = $parserOutput->getExtensionData( 'smwdata' );
211+
if ( $semanticData === null ) {
212+
return [];
213+
}
211214
$propValues = $semanticData->getPropertyValues( $property );
212215
$valueList = array_map(function( SMWDataItem $propVal ) {
213216
if ($propVal instanceof DIWikiPage) {

0 commit comments

Comments
 (0)