Fixed a crasher when trying to get event data flavors on events that don't

have event data.

llvm-svn: 120948
This commit is contained in:
Greg Clayton 2010-12-05 19:21:02 +00:00
parent a9ff306151
commit 920c696c54
1 changed files with 5 additions and 1 deletions

View File

@ -68,7 +68,11 @@ SBEvent::GetDataFlavor ()
{
Event *lldb_event = get();
if (lldb_event)
return lldb_event->GetData()->GetFlavor().AsCString();
{
EventData *event_data = lldb_event->GetData();
if (event_data)
return lldb_event->GetData()->GetFlavor().AsCString();
}
return NULL;
}