From 8c2bf116f58e7bd4ad8fae6cd6f7bd25da72abf5 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 22 Sep 2023 08:26:22 -0600 Subject: [PATCH] fix crash when using OSC in a session with no master bus and no stripables selected --- libs/surfaces/osc/osc.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index 824c4312aa..345437810c 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -4757,6 +4757,9 @@ OSC::_strip_select2 (std::shared_ptr s, OSCSurface *sur, lo_address a } _select = s; } + if (!s) { + return 0; + } if (s != old_sel) { sur->select = s; }