Make sure to check the module is valid after trying to find a shared module.
authorGreg Clayton <gclayton@apple.com>
Tue, 6 Nov 2012 17:50:15 +0000 (17:50 +0000)
committerGreg Clayton <gclayton@apple.com>
Tue, 6 Nov 2012 17:50:15 +0000 (17:50 +0000)
llvm-svn: 167471

lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp

index 0535626..d322199 100644 (file)
@@ -227,7 +227,7 @@ PlatformFreeBSD::ResolveExecutable (const FileSpec &exe_file,
                                                  NULL,
                                                  NULL);
 
-            if (exe_module_sp->GetObjectFile() == NULL)
+            if (!exe_module_sp || exe_module_sp->GetObjectFile() == NULL)
             {
                 exe_module_sp.reset();
                 error.SetErrorStringWithFormat ("'%s%s%s' doesn't contain the architecture %s",