mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-09-23 10:22:05 +00:00
getContent can return null
Change-Id: I535294682b59fea6c465828facd668b4f60efe6c
This commit is contained in:
parent
c2fb14e9c1
commit
3f0322e16c
|
@ -288,6 +288,16 @@ class GenerateSampleNotifications extends Maintenance {
|
|||
$undoContent = $undoRev->getContent( SlotRecord::MAIN );
|
||||
$previousContent = $previous->getContent( SlotRecord::MAIN );
|
||||
|
||||
if ( !$undoContent ) {
|
||||
$this->error( "Failed to undo {$moai->getPrefixedText()}: undoContent is null." );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( !$previousContent ) {
|
||||
$this->error( "Failed to undo {$moai->getPrefixedText()}: previousContent is null." );
|
||||
return;
|
||||
}
|
||||
|
||||
$content = $handler->getUndoContent(
|
||||
$undoContent,
|
||||
$undoContent,
|
||||
|
|
Loading…
Reference in a new issue