Fixed a crash if the Objective-C runtime module
authorSean Callanan <scallanan@apple.com>
Fri, 29 Mar 2013 19:46:09 +0000 (19:46 +0000)
committerSean Callanan <scallanan@apple.com>
Fri, 29 Mar 2013 19:46:09 +0000 (19:46 +0000)
wasn't loaded into the underlying process or
couldn't be found.

<rdar://problem/13533671>

llvm-svn: 178363

lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp

index 6cfc05a..e46a1fd 100644 (file)
@@ -1659,6 +1659,9 @@ AppleObjCRuntimeV2::GetISAHashTablePointer ()
         Process *process = GetProcess();
 
         ModuleSP objc_module_sp(GetObjCModule());
+        
+        if (!objc_module_sp)
+            return LLDB_INVALID_ADDRESS;
 
         static ConstString g_gdb_objc_realized_classes("gdb_objc_realized_classes");