diff --git a/source/blender/editors/space_clip/clip_dopesheet_ops.cc b/source/blender/editors/space_clip/clip_dopesheet_ops.cc index 66f92003241..862ecba4afa 100644 --- a/source/blender/editors/space_clip/clip_dopesheet_ops.cc +++ b/source/blender/editors/space_clip/clip_dopesheet_ops.cc @@ -159,8 +159,10 @@ static int dopesheet_view_all_exec(bContext *C, wmOperator * /*op*/) int frame_min = INT_MAX, frame_max = INT_MIN; LISTBASE_FOREACH (MovieTrackingDopesheetChannel *, channel, &dopesheet->channels) { - frame_min = min_ii(frame_min, channel->segments[0]); - frame_max = max_ii(frame_max, channel->segments[channel->tot_segment]); + if (channel->segments) { + frame_min = min_ii(frame_min, channel->segments[0]); + frame_max = max_ii(frame_max, channel->segments[channel->tot_segment]); + } } if (frame_min < frame_max) {