summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Core/Debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index dc7d30bc00d..5b346ed636d 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -2913,7 +2913,7 @@ Debugger::HandleProcessEvent (const EventSP &event_sp)
thread_list.SetSelectedThreadByID (other_thread->GetID());
else
{
- if (curr_thread->IsValid())
+ if (curr_thread && curr_thread->IsValid())
thread = curr_thread;
else
thread = thread_list.GetThreadAtIndex(0);
OpenPOWER on IntegriCloud