From 2265acf39e120290f11c73bf7e3fb4a0cf5419bc Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Wed, 28 Jan 2015 19:23:51 +0000 Subject: [PATCH] Harden against the process pointer being null - this seems like it shouldn't happen, except it did - by a user stopping the debugger while the variables view was refreshing Fixes rdar://19599357 llvm-svn: 227350 --- lldb/source/DataFormatters/FormatManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lldb/source/DataFormatters/FormatManager.cpp b/lldb/source/DataFormatters/FormatManager.cpp index 01799ce..ae52b33 100644 --- a/lldb/source/DataFormatters/FormatManager.cpp +++ b/lldb/source/DataFormatters/FormatManager.cpp @@ -251,6 +251,8 @@ FormatManager::GetPossibleMatches (ValueObject& valobj, do { lldb::ProcessSP process_sp = valobj.GetProcessSP(); + if (!process_sp) + break; ObjCLanguageRuntime* runtime = process_sp->GetObjCLanguageRuntime(); if (runtime == nullptr) break; -- 2.7.4