diff options
| -rw-r--r-- | lldb/source/Core/Debugger.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 867e1de68e5..dc7d30bc00d 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -2871,7 +2871,8 @@ Debugger::HandleProcessEvent (const EventSP &event_sp) StopReason curr_thread_stop_reason = eStopReasonInvalid; if (curr_thread) curr_thread_stop_reason = curr_thread->GetStopReason(); - if (!curr_thread->IsValid() || + if (!curr_thread || + !curr_thread->IsValid() || curr_thread_stop_reason == eStopReasonInvalid || curr_thread_stop_reason == eStopReasonNone) { |

