Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(559)

Unified Diff: sky/sdk/lib/framework/fn2.dart

Issue 1169593002: Fix bogus asserts in searchForOldNode (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/fn2.dart
diff --git a/sky/sdk/lib/framework/fn2.dart b/sky/sdk/lib/framework/fn2.dart
index 14c41e38783487ebb657a3e85b8df7c8b180fcda..f3434de3351594154185326dcda6d1832f228bd0 100644
--- a/sky/sdk/lib/framework/fn2.dart
+++ b/sky/sdk/lib/framework/fn2.dart
@@ -573,7 +573,8 @@ abstract class MultiChildRenderObjectWrapper extends RenderObjectWrapper {
oldNodeIdMap[currentNode._key] = null; // mark it reordered
assert(root is ContainerRenderObjectMixin);
- assert(oldNode.root is ContainerRenderObjectMixin);
+ assert(old.root is ContainerRenderObjectMixin);
+ assert(oldNode.root != null);
old.root.remove(oldNode.root);
root.add(oldNode.root, before: nextSibling);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698