Fix bug #6766, Crash when creating new Session while one is currently open
authorTim Mayberry <mojofunk@gmail.com>
Wed, 10 Feb 2016 23:52:36 +0000 (09:52 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Wed, 10 Feb 2016 23:52:36 +0000 (09:52 +1000)
gtk2_ardour/mixer_ui.cc

index 9ae81a59205219e7cc1f7c6b19504311acabbf15..7200cfd20f7e733f7799579a547a00bd8f6071ad 100644 (file)
@@ -2011,7 +2011,7 @@ Mixer_UI::parameter_changed (string const & p)
        } else if (p == "remote-model") {
                reset_remote_control_ids ();
        } else if (p == "use-monitor-bus") {
-               if (!_session->monitor_out()) {
+               if (_session && !_session->monitor_out()) {
                        monitor_section_detached ();
                }
        }