Check that we got back an object from MakeFunctionCaller
before we call through it.
<rdar://problem/28979705>
llvm-svn: 285369
diff --git a/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.cpp b/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.cpp
index d3ab0fa..4ed43e5 100644
--- a/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.cpp
+++ b/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.cpp
@@ -203,7 +203,7 @@
m_get_thread_item_info_impl_code->MakeFunctionCaller(
get_thread_item_info_return_type, get_thread_item_info_arglist,
thread_sp, error);
- if (error.Fail()) {
+ if (error.Fail() || get_thread_item_info_caller == nullptr) {
if (log)
log->Printf("Failed to install get-thread-item-info introspection "
"caller: %s.",