diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2018-11-02 21:36:53 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2018-11-02 21:52:00 -0400 |
commit | bf2d9e7a342dbb4d06b258e9d22cc4915260914c (patch) | |
tree | ea301c6904e45a1ba9528c77d7c80b15e200e248 /libs/ardour/transport_master_manager.cc | |
parent | c04fc2efe2453c15725fb43b009dfd5fc3b82b0b (diff) |
fix crash during first-run configuration of the application, caused by using an incomplete TransportMasterManager
Diffstat (limited to 'libs/ardour/transport_master_manager.cc')
-rw-r--r-- | libs/ardour/transport_master_manager.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/transport_master_manager.cc b/libs/ardour/transport_master_manager.cc index 063224632c..6354dff05c 100644 --- a/libs/ardour/transport_master_manager.cc +++ b/libs/ardour/transport_master_manager.cc @@ -522,7 +522,9 @@ TransportMasterManager::get_state () { XMLNode* node = new XMLNode (state_node_name); - node->set_property (X_("current"), _current_master->name()); + if (_current_master) { + node->set_property (X_("current"), _current_master->name()); + } Glib::Threads::RWLock::ReaderLock lm (lock); |