From a5393dbf35e112beb5e87496a4de6919f3620166 Mon Sep 17 00:00:00 2001 From: GZharun Date: Mon, 19 Jan 2015 10:27:55 +0200 Subject: [PATCH] [Summary] Added NULL ptr check when it's required --- gtk2_ardour/editor_mixer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_mixer.cc b/gtk2_ardour/editor_mixer.cc index 677aba7c35..247355843b 100644 --- a/gtk2_ardour/editor_mixer.cc +++ b/gtk2_ardour/editor_mixer.cc @@ -223,7 +223,7 @@ Editor::set_selected_mixer_strip (TimeAxisView& view) if (current_mixer_strip->route() && !selection->tracks.empty() ) { TimeAxisView* cur_view = get_route_view_by_route_id(current_mixer_strip->route()->id() ); - if (selection->selected(cur_view) ) { + if (cur_view && selection->selected(cur_view) ) { // nothing to do, we already show the track which is selected return; }