Skip to content

Commit 860ad79

Browse files
committed
do nothing, if title == null
1 parent 26cb208 commit 860ad79

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: SemanticDependencyUpdater.hooks.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ public static function setup() {
2323
}
2424
}
2525

26-
public static function onAfterDataUpdateComplete( SMWStore $store, SMWSemanticData $newData,
27-
$compositePropertyTableDiffIterator ) {
26+
public static function onAfterDataUpdateComplete( SMWStore $store, SMWSemanticData $newData, $compositePropertyTableDiffIterator ) {
2827
global $wgSDUProperty;
2928
global $wgSDUTraversed;
3029

@@ -35,6 +34,10 @@ public static function onAfterDataUpdateComplete( SMWStore $store, SMWSemanticDa
3534
$wgSDUProperty = str_replace( ' ', '_', $wgSDUProperty );
3635
$subject = $newData->getSubject();
3736
$title = $subject->getTitle();
37+
if ($title == null) {
38+
return true;
39+
}
40+
3841
$id = $title->getPrefixedDBKey();
3942

4043
wfDebugLog( 'SemanticDependencyUpdater', "[SDU] --> " . $title );

0 commit comments

Comments
 (0)