Chromium Code Reviews| Index: runtime/vm/debugger.cc |
| diff --git a/runtime/vm/debugger.cc b/runtime/vm/debugger.cc |
| index 396a86974a67a5e334543a3a445ae54da0175e85..118d6037bcfa1ddde2744690e268cefab72195d3 100644 |
| --- a/runtime/vm/debugger.cc |
| +++ b/runtime/vm/debugger.cc |
| @@ -3269,8 +3269,9 @@ void Debugger::SetAsyncSteppingFramePointer() { |
| if (!FLAG_async_debugger) { |
| return; |
| } |
| - if (stack_trace_->FrameAt(0)->function().IsAsyncClosure() || |
| - stack_trace_->FrameAt(0)->function().IsAsyncGenClosure()) { |
| + if (stack_trace_->Length() > 0 && |
|
rmacnak
2017/08/14 20:15:24
if ((stack_trace_->Length() > 0) &&
|
| + (stack_trace_->FrameAt(0)->function().IsAsyncClosure() || |
| + stack_trace_->FrameAt(0)->function().IsAsyncGenClosure())) { |
| async_stepping_fp_ = stack_trace_->FrameAt(0)->fp(); |
| } else { |
| async_stepping_fp_ = 0; |