From 1316e85d4143a1f77ad911028bb929dcc3c83c0f Mon Sep 17 00:00:00 2001 From: Mathias Buhr Date: Mon, 28 Mar 2016 20:08:35 +0200 Subject: [PATCH] Don't crash when keyeditor is empty --- gtk2_ardour/keyeditor.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/keyeditor.cc b/gtk2_ardour/keyeditor.cc index 8c4aaa1911..56044c1c9a 100644 --- a/gtk2_ardour/keyeditor.cc +++ b/gtk2_ardour/keyeditor.cc @@ -496,5 +496,8 @@ void KeyEditor::search_string_updated (const std::string& filter) { filter_string = boost::to_lower_copy(filter); - current_tab ()->filter->refilter (); + KeyEditor::Tab* tab = current_tab (); + if (tab) { + tab->filter->refilter (); + } }