diff options
-rw-r--r-- | libs/ardour/instrument_info.cc | 7 |
1 files changed, 6 insertions, 1 deletions
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<const Control> c = control_names->control(param.id()); - return control_names->control(param.id())->name(); + if (c) { + return c->name(); + } + + return ""; } boost::shared_ptr<MIDI::Name::ChannelNameSet> |