Index: runtime/bin/dbg_message.cc |
=================================================================== |
--- runtime/bin/dbg_message.cc (revision 38090) |
+++ runtime/bin/dbg_message.cc (working copy) |
@@ -447,6 +447,9 @@ |
intptr_t trace_len = 0; |
Dart_Handle res = Dart_StackTraceLength(trace, &trace_len); |
ASSERT_NOT_ERROR(res); |
+ if (trace_len == 0) { |
+ return; |
+ } |
Dart_ActivationFrame frame; |
res = Dart_GetActivationFrame(trace, 0, &frame); |
ASSERT_NOT_ERROR(res); |