DebugClients/Python/DebugClientBase.py

changeset 2636
f3dd3c8d4aa4
parent 2486
e16c9ced6ae5
child 2761
bcc10ef7015d
--- a/DebugClients/Python/DebugClientBase.py	Sun Apr 28 15:38:35 2013 +0200
+++ b/DebugClients/Python/DebugClientBase.py	Sun Apr 28 19:02:44 2013 +0200
@@ -1231,6 +1231,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
         
@@ -1270,6 +1273,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