diff --git a/libs/ardour/ardour/utils.h b/libs/ardour/ardour/utils.h index cc6e5044ce..b06f7f17a8 100644 --- a/libs/ardour/ardour/utils.h +++ b/libs/ardour/ardour/utils.h @@ -178,6 +178,7 @@ LIBARDOUR_API uint32_t how_many_dsp_threads (); template boost::shared_ptr route_list_to_control_list (boost::shared_ptr rl, boost::shared_ptr (Stripable::*get_control)() const) { boost::shared_ptr cl (new ControlList); + if (!rl) { return cl; } for (RouteList::const_iterator r = rl->begin(); r != rl->end(); ++r) { boost::shared_ptr ac = ((*r).get()->*get_control)(); if (ac) {