From 25aa10b5c4a2908503405a3fbe81ea205f2a1fee Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Thu, 18 Oct 2018 15:27:07 +1100 Subject: [PATCH] fixed crash when ripple deleting after deleting another clip (#140) --- panels/timeline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/timeline.cpp b/panels/timeline.cpp index 466b662e6..2f53bebb4 100644 --- a/panels/timeline.cpp +++ b/panels/timeline.cpp @@ -300,7 +300,7 @@ void Timeline::delete_selection(bool ripple_delete) { bool can_ripple = true; for (int i=0;iclips.size();i++) { Clip* c = sequence->clips.at(i); - if (c->timeline_in < ripple_point && c->timeline_out > ripple_point) { + if (c != NULL && c->timeline_in < ripple_point && c->timeline_out > ripple_point) { // conflict detected, but this clip may be getting deleted so let's check bool deleted = false; for (int j=0;jselections.size();j++) {