Esanders has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/368825 )

Change subject: Don't throw an exception if observed annotation is alien to us
......................................................................

Don't throw an exception if observed annotation is alien to us

Bug: T165746
Change-Id: Ic4ea1d5bde29f77d0b62e7fc99df151674864bce
---
M src/ce/ve.ce.TextState.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor 
refs/changes/25/368825/1

diff --git a/src/ce/ve.ce.TextState.js b/src/ce/ve.ce.TextState.js
index 7459b31..ddc5a08 100644
--- a/src/ce/ve.ce.TextState.js
+++ b/src/ce/ve.ce.TextState.js
@@ -396,7 +396,7 @@
                                        modelClass = ve.dm.modelRegistry.lookup(
                                                
ve.dm.modelRegistry.matchElement( element )
                                        );
-                                       if ( !( modelClass.prototype instanceof 
ve.dm.Annotation ) ) {
+                                       if ( !( modelClass && 
modelClass.prototype instanceof ve.dm.Annotation ) ) {
                                                // Erroneous element; nothing 
we can do with it
                                                continue;
                                        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic4ea1d5bde29f77d0b62e7fc99df151674864bce
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to