controls/DebugVariablePanel/DebugVariableItem.py
branchwxPython4
changeset 3609 51a3d6f39944
parent 3598 13677d093946
child 3750 f62625418bff
--- a/controls/DebugVariablePanel/DebugVariableItem.py	Tue Sep 13 16:51:54 2022 +0200
+++ b/controls/DebugVariablePanel/DebugVariableItem.py	Tue Sep 13 16:53:15 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