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

Unified Diff: runtime/observatory/lib/src/elements/script_inset.dart

Issue 2302163002: Manage null CallSite receivers in script-inset (Closed)
Patch Set: Created 4 years, 3 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: runtime/observatory/lib/src/elements/script_inset.dart
diff --git a/runtime/observatory/lib/src/elements/script_inset.dart b/runtime/observatory/lib/src/elements/script_inset.dart
index 18ac0db6dc4099bcd5160170028c66fbec4c4174..7413051488dc215ff90f91ed704124f2bdabdcb4 100644
--- a/runtime/observatory/lib/src/elements/script_inset.dart
+++ b/runtime/observatory/lib/src/elements/script_inset.dart
@@ -1181,7 +1181,11 @@ class CallSiteAnnotation extends Annotation {
for (var entry in callSite.entries) {
var r = row();
- r.append(cell(serviceRef(entry.receiver)));
+ if (entry.receiver == null) {
+ r.append(cell(""));
+ } else {
+ r.append(cell(serviceRef(entry.receiver)));
+ }
r.append(cell(entry.count.toString()));
r.append(cell(serviceRef(entry.target)));
details.append(r);
« 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