From 528f945ba3f30a767be84b10be419177e553f767 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 6 Apr 2015 21:19:51 -0400 Subject: [PATCH] fix crash during new session creation when sync-to-JACK is enabled as a preference --- libs/ardour/ardour/session.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 942b75fbef..9967c9c758 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -553,7 +553,7 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop static PBD::Signal1 EndTimeChanged; void request_sync_source (Slave*); - bool synced_to_engine() const { return config.get_external_sync() && Config->get_sync_source() == Engine; } + bool synced_to_engine() const { return _slave && config.get_external_sync() && Config->get_sync_source() == Engine; } double transport_speed() const { return _transport_speed; } bool transport_stopped() const { return _transport_speed == 0.0f; }