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

Unified Diff: sky/sdk/lib/framework/rendering/object.dart

Issue 1151533006: We don't necessarily have a child, so debugDescribeChildren() needs to check for null. (Closed) Base URL: https://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/rendering/object.dart
diff --git a/sky/sdk/lib/framework/rendering/object.dart b/sky/sdk/lib/framework/rendering/object.dart
index 46b414f3c14e8d032a92e140ac83ae18b559b408..1743f2fdad78e4509a2938dd88e8a7b854b8a377 100644
--- a/sky/sdk/lib/framework/rendering/object.dart
+++ b/sky/sdk/lib/framework/rendering/object.dart
@@ -265,7 +265,11 @@ abstract class RenderObjectWithChildMixin<ChildType extends RenderObject> {
if (_child != null)
_child.detach();
}
- String debugDescribeChildren(String prefix) => '${prefix}child: ${child.toString(prefix)}';
+ String debugDescribeChildren(String prefix) {
+ if (child != null)
+ return '${prefix}child: ${child.toString(prefix)}';
+ return '';
+ }
}
« 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