IDE: fix exception transfering or reconnecting after tracing variables
authorEdouard Tisserant
Fri, 09 Sep 2022 09:44:03 +0200
changeset 3598 13677d093946
parent 3597 f69c68cffec3
child 3599 0d7c41546854
IDE: fix exception transfering or reconnecting after tracing variables
controls/DebugVariablePanel/DebugVariableItem.py
--- a/controls/DebugVariablePanel/DebugVariableItem.py	Fri Sep 02 12:02:43 2022 +0200
+++ b/controls/DebugVariablePanel/DebugVariableItem.py	Fri Sep 09 09:44:03 2022 +0200
@@ -144,7 +144,7 @@
         """
         # Return immediately if data empty or none
         if self.Data is None or self.Data.count == 0:
-            return []
+            return None
 
         # Find nearest data outside given range indexes
         start_idx = (self.GetNearestData(start_tick, -1)
@@ -187,6 +187,9 @@
         # Get data in given tick range
         data = self.GetData(start_tick, end_tick)
 
+        if data is None:
+            return None, None, None
+
         # Value range is calculated on whole data
         if full_range:
             return data, self.MinValue, self.MaxValue