DebugClients/Python3/DebugClientBase.py

branch
5_3_x
changeset 2639
d9c43b41da5b
parent 2487
75ee609c3241
child 2761
bcc10ef7015d
--- a/DebugClients/Python3/DebugClientBase.py	Sun Apr 28 19:04:34 2013 +0200
+++ b/DebugClients/Python3/DebugClientBase.py	Sun Apr 28 19:02:44 2013 +0200
@@ -1241,6 +1241,9 @@
         @param scope 1 to report global variables, 0 for local variables (int)
         @param filter the indices of variable types to be filtered (list of int)
         """
+        if self.currentThread is None:
+            return
+        
         if scope == 0:
             self.framenr = frmnr
         
@@ -1280,6 +1283,9 @@
         @param scope 1 to report global variables, 0 for local variables (int)
         @param filter the indices of variable types to be filtered (list of int)
         """
+        if self.currentThread is None:
+            return
+        
         f = self.currentThread.getCurrentFrame()
         
         while f is not None and frmnr > 0:

eric ide

mercurial