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

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

Issue 2237383004: Fixed Observatory class-view crash (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 | runtime/observatory/lib/src/elements/containers/virtual_collection.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/elements/class_view.dart
diff --git a/runtime/observatory/lib/src/elements/class_view.dart b/runtime/observatory/lib/src/elements/class_view.dart
index 9f860a9f25f56fccafc9b21c7190c4a5f386d4fe..b101fbfa6b657dab7c45d356ec9946984ddc7127 100644
--- a/runtime/observatory/lib/src/elements/class_view.dart
+++ b/runtime/observatory/lib/src/elements/class_view.dart
@@ -93,7 +93,7 @@ class ClassViewElement extends ObservatoryElement {
})
];
if (M.isSampleProcessRunning(progress.status)) {
- progress = await stream.last;
+ progress = (await stream.last).progress;
}
if (progress.status == M.SampleProfileLoadingStatus.loaded) {
shadowRoot.querySelector('#stackTraceTreeConfig')..children = [
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/containers/virtual_collection.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698