--- 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