From 2d73997dc411e17334c96e55bcdd3b38f32d8319 Mon Sep 17 00:00:00 2001 From: jazztickets Date: Tue, 20 Feb 2024 09:25:47 -0700 Subject: [PATCH] check for null track --- app/timeline/timelineundoripple.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/timeline/timelineundoripple.cpp b/app/timeline/timelineundoripple.cpp index 42ff4449e2..810c704690 100644 --- a/app/timeline/timelineundoripple.cpp +++ b/app/timeline/timelineundoripple.cpp @@ -388,6 +388,10 @@ void TimelineRippleDeleteGapsAtRegionsCommand::prepare() // Convert regions to gaps for (const QPair ®ion : qAsConst(regions_)) { Track *track = region.first; + if(!track) { + qWarning() << "Region track is null!"; + continue; + } const TimeRange &range = region.second; GapBlock *gap = dynamic_cast(track->NearestBlockBeforeOrAt(range.in()));