From 1ef1734e7625afe9771049c9c5fe4047ec229c5d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 6 Dec 2016 22:51:55 +0100 Subject: Allow sparse CC lists. --- libs/ardour/instrument_info.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/ardour/instrument_info.cc b/libs/ardour/instrument_info.cc index 2f77d980ba..09fef4f482 100644 --- a/libs/ardour/instrument_info.cc +++ b/libs/ardour/instrument_info.cc @@ -150,8 +150,13 @@ InstrumentInfo::get_controller_name (Evoral::Parameter param) const if (!control_names) { return ""; } + boost::shared_ptr c = control_names->control(param.id()); - return control_names->control(param.id())->name(); + if (c) { + return c->name(); + } + + return ""; } boost::shared_ptr -- cgit v1.2.3