Fix a crasher when you have no log.

llvm-svn: 124109
This commit is contained in:
Greg Clayton 2011-01-24 05:36:47 +00:00
parent ce5798394f
commit abcbc8aca8
1 changed files with 4 additions and 3 deletions

View File

@ -331,9 +331,10 @@ ThreadList::ShouldReportRun (Event *event_ptr)
result = eVoteYes;
break;
case eVoteNo:
log->Printf ("ThreadList::ShouldReportRun() thread %d (0x%4.4x) says don't report.",
(*pos)->GetIndexID(),
(*pos)->GetID());
if (log)
log->Printf ("ThreadList::ShouldReportRun() thread %d (0x%4.4x) says don't report.",
(*pos)->GetIndexID(),
(*pos)->GetID());
result = eVoteNo;
break;
}