diff --git a/libs/ardour/ardour/utils.h b/libs/ardour/ardour/utils.h index 37788b321e..0030ddead8 100644 --- a/libs/ardour/ardour/utils.h +++ b/libs/ardour/ardour/utils.h @@ -137,6 +137,7 @@ template std::shared_ptr stripable_list_to_co template std::shared_ptr stripable_list_to_control_list (std::shared_ptr sl, std::shared_ptr (Stripable::*get_control)() const) { std::shared_ptr cl (new AutomationControlList); + if (!sl) { return cl; } for (auto const & s : *sl) { std::shared_ptr ac = (s.get()->*get_control)(); if (ac) {