Seen by @Dogu when trying to do a rollback on `https://tr.wikipedia.org/wiki/1,1,1-Trikloroetan after an edit with a suppressed username.
Error
- mwversion: 1.43.0-wmf.13
- reqId: e5e76839-8cb0-4d9f-8385-eee56bf380b1
- Find reqId in Logstash
[{reqId}] {exception_url} Error: Call to a member function equals() on null
from /srv/mediawiki/php-1.43.0-wmf.13/extensions/AutoModerator/src/RevisionCheck.php(270) #0 /srv/mediawiki/php-1.43.0-wmf.13/extensions/AutoModerator/src/Hooks/RevisionFromEditCompleteHookHandler.php(121): AutoModerator\RevisionCheck::revertPreCheck(MediaWiki\User\User, MediaWiki\User\User, Monolog\Logger, MediaWiki\Revision\RevisionStore, array, MediaWiki\Permissions\RestrictionStore, MediaWiki\Page\WikiPageFactory, MediaWiki\User\UserGroupManager, AutoModerator\Config\AutoModeratorWikiConfigLoader, integer, integer) #1 /srv/mediawiki/php-1.43.0-wmf.13/extensions/AutoModerator/src/Hooks.php(89): AutoModerator\Hooks\RevisionFromEditCompleteHookHandler->handle(WikiPage, MediaWiki\Revision\RevisionStoreRecord, integer, MediaWiki\User\User, array) #2 /srv/mediawiki/php-1.43.0-wmf.13/includes/HookContainer/HookContainer.php(159): AutoModerator\Hooks->onRevisionFromEditComplete(WikiPage, MediaWiki\Revision\RevisionStoreRecord, integer, MediaWiki\User\User, array) #3 /srv/mediawiki/php-1.43.0-wmf.13/includes/HookContainer/HookRunner.php(3290): MediaWiki\HookContainer\HookContainer->run(string, array) #4 /srv/mediawiki/php-1.43.0-wmf.13/includes/Storage/PageUpdater.php(1387): MediaWiki\HookContainer\HookRunner->onRevisionFromEditComplete(WikiPage, MediaWiki\Revision\RevisionStoreRecord, integer, MediaWiki\User\User, array) #5 /srv/mediawiki/php-1.43.0-wmf.13/includes/Storage/PageUpdater.php(923): MediaWiki\Storage\PageUpdater->doModify(MediaWiki\CommentStore\CommentStoreComment) #6 /srv/mediawiki/php-1.43.0-wmf.13/includes/page/RollbackPage.php(319): MediaWiki\Storage\PageUpdater->saveRevision(MediaWiki\CommentStore\CommentStoreComment, integer) #7 /srv/mediawiki/php-1.43.0-wmf.13/includes/page/RollbackPage.php(198): MediaWiki\Page\RollbackPage->rollback() #8 /srv/mediawiki/php-1.43.0-wmf.13/includes/actions/RollbackAction.php(188): MediaWiki\Page\RollbackPage->rollbackIfAllowed() #9 /srv/mediawiki/php-1.43.0-wmf.13/includes/actions/RollbackAction.php(136): RollbackAction->handleRollbackRequest() #10 /srv/mediawiki/php-1.43.0-wmf.13/includes/actions/ActionEntryPoint.php(731): RollbackAction->show() #11 /srv/mediawiki/php-1.43.0-wmf.13/includes/actions/ActionEntryPoint.php(508): MediaWiki\Actions\ActionEntryPoint->performAction(Article, MediaWiki\Title\Title) #12 /srv/mediawiki/php-1.43.0-wmf.13/includes/actions/ActionEntryPoint.php(145): MediaWiki\Actions\ActionEntryPoint->performRequest() #13 /srv/mediawiki/php-1.43.0-wmf.13/includes/MediaWikiEntryPoint.php(200): MediaWiki\Actions\ActionEntryPoint->execute() #14 /srv/mediawiki/php-1.43.0-wmf.13/index.php(58): MediaWiki\MediaWikiEntryPoint->run() #15 /srv/mediawiki/w/index.php(3): require(string) #16 {main}
Impact
Prevents reverts of bad edits, both rollback and manual.