diff options
Diffstat (limited to 'lldb/source/API/SBThread.cpp')
| -rw-r--r-- | lldb/source/API/SBThread.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/API/SBThread.cpp b/lldb/source/API/SBThread.cpp index 4b54b1c0c1c..58a204fac6b 100644 --- a/lldb/source/API/SBThread.cpp +++ b/lldb/source/API/SBThread.cpp @@ -1303,7 +1303,8 @@ SBThread::GetExtendedBacktrace (const char *type) if (runtime) { ThreadSP origin_thread = runtime->GetExtendedBacktrace (real_thread, type_const); - sb_origin_thread.SetThread (origin_thread); + if (origin_thread && origin_thread->IsValid()) + sb_origin_thread.SetThread (origin_thread); } } } |

