diff options
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/engine/LV2Plugin.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libs/engine/LV2Plugin.cpp b/src/libs/engine/LV2Plugin.cpp index 7d069eda..871050e4 100644 --- a/src/libs/engine/LV2Plugin.cpp +++ b/src/libs/engine/LV2Plugin.cpp @@ -47,7 +47,11 @@ LV2Plugin::symbol() const const string LV2Plugin::name() const { - return slv2_value_as_string(slv2_plugin_get_name(_slv2_plugin)); + SLV2Value name = slv2_plugin_get_name(_slv2_plugin); + if (name) + return slv2_value_as_string(name); + else + return "(no name)"; } |