Commit 9de01b17 authored by Adam Barth's avatar Adam Barth

ancestor is Flex assert in widgets/basic.dart

We didn't mean to flag null ancestors for this debugging check.

Fixes #1140
parent 73b09693
......@@ -823,7 +823,6 @@ abstract class Component extends Widget {
assert(_child == null);
}
String _debugPreviousComponent;
assert(() {
_debugIsBuilding = true;
_debugComponentBuildTree.add(this);
......@@ -1137,7 +1136,8 @@ abstract class RenderObjectWrapper extends Widget {
Widget ancestor = current.parent;
while (ancestor != null && ancestor is Component)
ancestor = ancestor.parent;
current.debugValidateAncestor(ancestor);
if (ancestor != null)
current.debugValidateAncestor(ancestor);
}
return true;
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment