Fixed an issue in the Python debug clients caused by the current thread being None.

Sun, 28 Apr 2013 19:02:44 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 28 Apr 2013 19:02:44 +0200
changeset 2636
f3dd3c8d4aa4
parent 2634
8bd79dfb48a5
child 2641
54449eeec336

Fixed an issue in the Python debug clients caused by the current thread being None.

DebugClients/Python/DebugClientBase.py file | annotate | diff | comparison | revisions
DebugClients/Python3/DebugClientBase.py file | annotate | diff | comparison | revisions
--- 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:
--- a/DebugClients/Python3/DebugClientBase.py	Sun Apr 28 15:38:35 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