summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2018-03-04 15:46:09 -0800
committerLen Ovens <len@ovenwerks.net>2018-03-10 13:07:13 -0800
commitd1290e82db564198b87d9b2a18e7163650279508 (patch)
treebb6a33aa36f14598a7e516054f12e36eb613f721
parent52ed40656b5e3626eda22e394577267762dddf0a (diff)
OSC: check route exists
-rw-r--r--libs/surfaces/osc/osc_route_observer.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/surfaces/osc/osc_route_observer.cc b/libs/surfaces/osc/osc_route_observer.cc
index f676e3964e..48539eb1f3 100644
--- a/libs/surfaces/osc/osc_route_observer.cc
+++ b/libs/surfaces/osc/osc_route_observer.cc
@@ -132,8 +132,10 @@ OSCRouteObserver::refresh_strip (boost::shared_ptr<ARDOUR::Stripable> new_strip,
name_changed (ARDOUR::Properties::name);
boost::shared_ptr<Route> rt = boost::dynamic_pointer_cast<Route> (_strip);
- rt->route_group_changed.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCRouteObserver::group_name, this), OSC::instance());
- group_name ();
+ if (rt) {
+ rt->route_group_changed.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCRouteObserver::group_name, this), OSC::instance());
+ group_name ();
+ }
_strip->presentation_info().PropertyChanged.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCRouteObserver::pi_changed, this, _1), OSC::instance());
_osc.int_message_with_id (X_("/strip/hide"), ssid, _strip->is_hidden (), in_line, addr);