Change-Id: Ibd8975efb33d061ab16dc1a59899b6f78976ec5d
// Get the prior revision (the same for null edits)
if ( $newRev->getParentId() ) {
$oldRev = Revision::newFromId( $newRev->getParentId(), Revision::READ_LATEST );
// Get the prior revision (the same for null edits)
if ( $newRev->getParentId() ) {
$oldRev = Revision::newFromId( $newRev->getParentId(), Revision::READ_LATEST );
- if ( !$oldRev->getContent() ) {
+ if ( !$oldRev || !$oldRev->getContent() ) {
return; // deleted?
}
} else {
return; // deleted?
}
} else {