forked from OSchip/llvm-project
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:
parent
2419f1d57c
commit
0ee8282f4a
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue