Check curr_thread is not empty before accessing it.
<rdar://problem/15953271> llvm-svn: 200504
This commit is contained in:
parent
60a4678c42
commit
4046a30c73
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue