Check curr_thread is not empty before accessing it.

<rdar://problem/15953271>

llvm-svn: 200504
This commit is contained in:
Jim Ingham 2014-01-31 01:01:23 +00:00
parent 60a4678c42
commit 4046a30c73
1 changed files with 1 additions and 1 deletions

View File

@ -2913,7 +2913,7 @@ Debugger::HandleProcessEvent (const EventSP &event_sp)
thread_list.SetSelectedThreadByID (other_thread->GetID()); thread_list.SetSelectedThreadByID (other_thread->GetID());
else else
{ {
if (curr_thread->IsValid()) if (curr_thread && curr_thread->IsValid())
thread = curr_thread; thread = curr_thread;
else else
thread = thread_list.GetThreadAtIndex(0); thread = thread_list.GetThreadAtIndex(0);