Don't crash when keyeditor is empty
authorMathias Buhr <napcode@apparatus.de>
Mon, 28 Mar 2016 18:08:35 +0000 (20:08 +0200)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 30 Mar 2016 11:29:09 +0000 (07:29 -0400)
gtk2_ardour/keyeditor.cc

index 8c4aaa191115fa6301a111c3a871b07245eaef48..56044c1c9a2cab2de3d22d50bfad0b6bd5d69efb 100644 (file)
@@ -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 ();
+       }
 }