From 86a9fb2844730cf0b1468b1199a0898f4bb83dc7 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 11 Apr 2016 09:47:36 -0400 Subject: [PATCH] stop crash caused by missing conditional --- libs/ardour/route.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 0b8a0b8ff3..29709e3cba 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -738,10 +738,12 @@ Route::passthru_silence (framepos_t start_frame, framepos_t end_frame, pframes_t void Route::set_listen (bool yn) { - if (yn) { - _monitor_send->activate (); - } else { - _monitor_send->deactivate (); + if (_monitor_send) { + if (yn) { + _monitor_send->activate (); + } else { + _monitor_send->deactivate (); + } } } -- 2.30.2