From 6421cccff8bd10c1d5e38dcb3cbfe680393fa97a Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Tue, 6 Nov 2012 17:50:15 +0000 Subject: [PATCH] Make sure to check the module is valid after trying to find a shared module. llvm-svn: 167471 --- lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp b/lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp index 0535626..d322199 100644 --- a/lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp +++ b/lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp @@ -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", -- 2.7.4