forked from OSchip/llvm-project
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:
parent
a9ff306151
commit
920c696c54
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue