timeline: null check on setting beam cursor

Fixes crash
This commit is contained in:
itsmattkc
2021-07-23 15:50:25 -07:00
parent 179e8d9014
commit 9e183779f3
@@ -589,6 +589,10 @@ void TimelineView::ConnectTrackList(TrackList *list)
void TimelineView::SetBeamCursor(const TimelineCoordinate &coord)
{
if (!connected_track_list_) {
return;
}
bool update_required = coord.GetTrack().type() == connected_track_list_->type()
|| cursor_coord_.GetTrack().type() == connected_track_list_->type();