diff --git a/lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py b/lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py index cfd2941ad193..7a4a6d05d3f2 100644 --- a/lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py +++ b/lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py @@ -95,6 +95,8 @@ class NumberOfThreadsTestCase(TestBase): # the same breakpoint. def is_thread3(thread): for frame in thread: + if frame.GetFunctionName() is None: + continue if "thread3" in frame.GetFunctionName(): return True return False