From c32fef2660cccf822d39bae918670c655e9a7765 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 19 Apr 2020 15:44:39 +0200 Subject: [PATCH] WebSockets: hotfix crash when a session has VCAs This eventually needs a better solution, special casing VCAs on the top-level. --- libs/surfaces/websockets/strips.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/surfaces/websockets/strips.cc b/libs/surfaces/websockets/strips.cc index e80d8af5d7..e9b81d2b55 100644 --- a/libs/surfaces/websockets/strips.cc +++ b/libs/surfaces/websockets/strips.cc @@ -201,6 +201,9 @@ ArdourStrips::strip_plugin_insert (uint32_t strip_n, uint32_t plugin_n) const { boost::shared_ptr strip = nth_strip (strip_n); boost::shared_ptr route = boost::dynamic_pointer_cast (strip); + if (!route) { + return boost::shared_ptr (); + } boost::shared_ptr processor = route->nth_plugin (plugin_n); if (processor) {