Log the reason why revision->getContent() returns null
authorStephane Bisson <sbisson@wikimedia.org>
Thu, 18 Jan 2018 20:09:59 +0000 (15:09 -0500)
committerStephane Bisson <sbisson@wikimedia.org>
Tue, 23 Jan 2018 21:41:04 +0000 (13:41 -0800)
commit8eb00f158422e5e2a9198f9d4318a1570b0f47af
tree1b448da51b7af8703e36a9f1c0c3693f44eb0b5c
parent5c28dd51ebfe07232b9d082812b64445dcc5f207
Log the reason why revision->getContent() returns null

In the context of WikiPage->doEditUpdates(), when $revision->getContent()
returns null, $this->prepareContentForEdit() fails because it expects
something that implements 'Content' as its first argument but null is given.

This problem happens during Flow beta feature opt-out. I hope
this logging is not too spammy and helps shed light on the Flow
problem.

Bug: T184670
Change-Id: If06b8fda3657cae2eb23821f35e5b87919ceb615
includes/Revision.php