[Lldb-commits] [lldb] r120948 - /lldb/trunk/source/API/SBEvent.cpp
Greg Clayton
gclayton at apple.com
Sun Dec 5 11:21:02 PST 2010
Author: gclayton
Date: Sun Dec 5 13:21:02 2010
New Revision: 120948
URL: http://llvm.org/viewvc/llvm-project?rev=120948&view=rev
Log:
Fixed a crasher when trying to get event data flavors on events that don't
have event data.
Modified:
lldb/trunk/source/API/SBEvent.cpp
Modified: lldb/trunk/source/API/SBEvent.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBEvent.cpp?rev=120948&r1=120947&r2=120948&view=diff
==============================================================================
--- lldb/trunk/source/API/SBEvent.cpp (original)
+++ lldb/trunk/source/API/SBEvent.cpp Sun Dec 5 13:21:02 2010
@@ -68,7 +68,11 @@
{
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;
}
More information about the lldb-commits
mailing list