diff --git a/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp index da6bde1cf1..cf35877882 100644 --- a/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp @@ -213,6 +213,9 @@ public: Rectangle getDetectedViewBounds() const { + if (widget == nullptr) + return {}; + #if JUCE_MAC const auto frame = [(NSView*) widget frame]; return { (int) frame.size.width, (int) frame.size.height };