From a0a25d23f095e09929ab409d49bf585f450e2530 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 3 Jan 2020 16:56:04 +0000 Subject: [PATCH] Fix assertion due to juce category name being empty Signed-off-by: falkTX --- source/backend/plugin/CarlaPluginJuce.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/backend/plugin/CarlaPluginJuce.cpp b/source/backend/plugin/CarlaPluginJuce.cpp index 8d946a499..e27785c5f 100644 --- a/source/backend/plugin/CarlaPluginJuce.cpp +++ b/source/backend/plugin/CarlaPluginJuce.cpp @@ -128,7 +128,10 @@ public: { if (fDesc.isInstrument) return PLUGIN_CATEGORY_SYNTH; - return getPluginCategoryFromName(fDesc.category.toRawUTF8()); + + return getPluginCategoryFromName(fDesc.category.isNotEmpty() + ? fDesc.category.toRawUTF8() + : fDesc.name.toRawUTF8()); } int64_t getUniqueId() const noexcept override