diff options
-rw-r--r-- | source/Target/StopInfo.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/Target/StopInfo.cpp b/source/Target/StopInfo.cpp index 247936801..81b9d866f 100644 --- a/source/Target/StopInfo.cpp +++ b/source/Target/StopInfo.cpp @@ -324,7 +324,10 @@ protected: if (!thread_sp->IsValid()) { // This shouldn't ever happen, but just in case, don't do more harm. - log->Printf ("PerformAction got called with an invalid thread."); + if (log) + { + log->Printf ("PerformAction got called with an invalid thread."); + } m_should_stop = true; m_should_stop_is_valid = true; return; |