From 2b9434b6af5fe94caea0304dd33e4c13222f14ff Mon Sep 17 00:00:00 2001 From: GZharun Date: Fri, 16 Jan 2015 14:55:12 +0200 Subject: [PATCH] [Summary] MixerStrip connects port_connected_or_disconnected to the engine::PortConnectedOrDisconnected before a route is set to the MixerStrip. So should check if the _route is NULL in this method. --- gtk2_ardour/mixer_strip.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index fcc462e299..dab658e06b 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -1241,6 +1241,10 @@ MixerStrip::io_changed_proxy () void MixerStrip::port_connected_or_disconnected (boost::weak_ptr wa, boost::weak_ptr wb) { + if (!_route) { + return; + } + boost::shared_ptr a = wa.lock (); boost::shared_ptr b = wb.lock ();