Change-Id: Ifa26ea8df0c5dd1f4c6ecabb9c8020bb84401ea3
* Gets the content object for the revision
*
* @since 1.21
- * @return Content
+ * @return Content|null
*/
protected function getContentInternal() {
if( is_null( $this->mContent ) ) {
: $handler->unserializeContent( $this->mText, $format );
}
- return $this->mContent->copy(); // NOTE: copy() will return $this for immutable content objects
+ // NOTE: copy() will return $this for immutable content objects
+ return $this->mContent ? $this->mContent->copy() : null;
}
/**