Index: packages/Python/lldbsuite/test/functionalities/thread/exit_during_step/TestExitDuringStep.py
===================================================================
--- packages/Python/lldbsuite/test/functionalities/thread/exit_during_step/TestExitDuringStep.py
+++ packages/Python/lldbsuite/test/functionalities/thread/exit_during_step/TestExitDuringStep.py
@@ -98,7 +98,8 @@
         stepping_thread = None
         for thread in process:
             expected_bp_desc = "breakpoint %s." % self.bp_num
-            if expected_bp_desc in thread.GetStopDescription(100):
+            stop_desc = thread.GetStopDescription(100)
+            if stop_desc and (expected_bp_desc in stop_desc):
                 stepping_thread = thread
                 break
         self.assertTrue(stepping_thread != None, "unable to find thread stopped at %s" % expected_bp_desc)