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()));