summaryrefslogtreecommitdiff
path: root/libs/ardour/rc_configuration.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2018-11-02 21:36:53 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2018-11-02 21:52:00 -0400
commitbf2d9e7a342dbb4d06b258e9d22cc4915260914c (patch)
treeea301c6904e45a1ba9528c77d7c80b15e200e248 /libs/ardour/rc_configuration.cc
parentc04fc2efe2453c15725fb43b009dfd5fc3b82b0b (diff)
fix crash during first-run configuration of the application, caused by using an incomplete TransportMasterManager
Diffstat (limited to 'libs/ardour/rc_configuration.cc')
-rw-r--r--libs/ardour/rc_configuration.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/rc_configuration.cc b/libs/ardour/rc_configuration.cc
index c558be8b08..3227a644dd 100644
--- a/libs/ardour/rc_configuration.cc
+++ b/libs/ardour/rc_configuration.cc
@@ -189,7 +189,10 @@ RCConfiguration::get_state ()
}
root->add_child_nocopy (ControlProtocolManager::instance().get_state());
- root->add_child_nocopy (TransportMasterManager::instance().get_state());
+
+ if (TransportMasterManager::exists()) {
+ root->add_child_nocopy (TransportMasterManager::instance().get_state());
+ }
return *root;
}