From 2ed8264a9a3dbef098e22486465eb2b77b172cbb Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 24 Feb 2019 18:46:28 +0100 Subject: [PATCH] Fix crash when directly loading vst shell plugins Signed-off-by: falkTX --- source/backend/plugin/CarlaPluginVST2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/backend/plugin/CarlaPluginVST2.cpp b/source/backend/plugin/CarlaPluginVST2.cpp index a7cf95403..e922f1613 100644 --- a/source/backend/plugin/CarlaPluginVST2.cpp +++ b/source/backend/plugin/CarlaPluginVST2.cpp @@ -1850,7 +1850,8 @@ protected: } case audioMasterCurrentId: - ret = fEffect->uniqueID; + if (fEffect != nullptr) + ret = fEffect->uniqueID; break; case audioMasterIdle: