Add a null check against the ThreadPlan

I'm seeing some cases where the ThreadPlan is null.  It could
be a sign of a valid race condition, but at least we shouldn't
crash.

llvm-svn: 253086
This commit is contained in:
Zachary Turner 2015-11-13 21:28:53 +00:00
parent 2419f1d57c
commit 0ee8282f4a
1 changed files with 1 additions and 1 deletions

View File

@ -538,7 +538,7 @@ ThreadList::WillResume ()
for (pos = m_threads.begin(); pos != end; ++pos)
{
if ((*pos)->GetResumeState() != eStateSuspended &&
if ((*pos)->GetResumeState() != eStateSuspended && (*pos)->GetCurrentPlan() &&
(*pos)->GetCurrentPlan()->StopOthers())
{
if ((*pos)->IsOperatingSystemPluginThread() && !(*pos)->GetBackingThread())