Try to avoid a crash regarding illegal paths received from GtkTreeView
authorRené Stadler <mail@renestadler.de>
Fri, 30 Nov 2007 12:15:32 +0000 (14:15 +0200)
committerStefan Sauer <ensonic@users.sf.net>
Thu, 11 Sep 2014 18:51:41 +0000 (20:51 +0200)
debug-viewer/GstDebugViewer/Plugins/Timeline.py

index 7ec3828..1313491 100644 (file)
@@ -726,6 +726,8 @@ class TimelineFeature (FeatureBase):
         if visible_range is None:
             return
         start_path, end_path = visible_range
+        if not start_path or not end_path:
+            return
         ts1 = model.get_value (model.get_iter (start_path),
                                model.COL_TIME)
         ts2 = model.get_value (model.get_iter (end_path),