diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 13d6b94e82ca..2518b9887817 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -3724,8 +3724,9 @@ Process::RunThreadPlan (ExecutionContext &exe_ctx, } else { - log->Printf ("Process::RunThreadPlan(): halt failed, I waited and didn't get" - " a stopped event, instead got %s.", StateAsCString(stop_state)); + if (log) + log->Printf ("Process::RunThreadPlan(): halt failed, I waited and didn't get" + " a stopped event, instead got %s.", StateAsCString(stop_state)); return_value = eExecutionInterrupted; break; }