jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/386670 )

Change subject: Do not try to parse the diff change row when it's empty
......................................................................


Do not try to parse the diff change row when it's empty

It's causing lexemes to fail

Change-Id: Ifca99cc17b5b37016fb6345dbf4e83912c081204
---
M lib/includes/Changes/EntityChange.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Hoo man: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/lib/includes/Changes/EntityChange.php 
b/lib/includes/Changes/EntityChange.php
index 7a4e818..9c62ac9 100644
--- a/lib/includes/Changes/EntityChange.php
+++ b/lib/includes/Changes/EntityChange.php
@@ -355,7 +355,7 @@
 
                $info = parent::unserializeInfo( $serialization );
 
-               if ( isset( $info['diff'] ) && is_array( $info['diff'] ) ) {
+               if ( isset( $info['diff'] ) && is_array( $info['diff'] ) && 
$info['diff'] ) {
                        if ( $factory === null ) {
                                $factory = $this->newDiffOpFactory();
                        }

-- 
To view, visit https://gerrit.wikimedia.org/r/386670
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifca99cc17b5b37016fb6345dbf4e83912c081204
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <ladsgr...@gmail.com>
Gerrit-Reviewer: Hoo man <h...@online.de>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to