Prevent exception when asking for CSV dump while variable traces are still empty
authorEdouard Tisserant
Fri, 08 Oct 2021 09:13:02 +0200
changeset 3335 c001c373f66c
parent 3334 d7e0ddb5974b
child 3341 dce1d5413310
child 3342 d8e99ecde9a2
Prevent exception when asking for CSV dump while variable traces are still empty
controls/DebugVariablePanel/DebugVariableItem.py
--- a/controls/DebugVariablePanel/DebugVariableItem.py	Fri Oct 08 09:11:55 2021 +0200
+++ b/controls/DebugVariablePanel/DebugVariableItem.py	Fri Oct 08 09:13:02 2021 +0200
@@ -144,7 +144,7 @@
         """
         # Return immediately if data empty or none
         if self.Data is None or self.Data.count == 0:
-            return None
+            return []
 
         # Find nearest data outside given range indexes
         start_idx = (self.GetNearestData(start_tick, -1)