mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-02 11:49:33 +01:00
Fix crash: new_route_from_template can return an empty RouteList if contruction failed
This commit is contained in:
parent
da5081c059
commit
942b6e6afd
1 changed files with 4 additions and 2 deletions
|
|
@ -344,12 +344,14 @@ void MixerSnapshot::recall()
|
|||
route = 0; //explicitly drop reference
|
||||
|
||||
RouteList rl = _session->new_route_from_template(1, order, node, name, disp);
|
||||
boost::shared_ptr<Route> route = rl.front();
|
||||
|
||||
if(!route) {
|
||||
//rl can be empty()
|
||||
if(rl.empty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
boost::shared_ptr<Route> route = rl.front();
|
||||
|
||||
if(get_recall_groups()) {
|
||||
XMLNode* group_node = find_named_node(node, X_("Group"));
|
||||
if(group_node) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue