diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index 86c1eea9c2..5e8f6a5923 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -2926,8 +2926,12 @@ public: void componentPeerChanged() override { closePluginWindow(); - openPluginWindow(); - componentMovedOrResized (true, true); + + if (getPeer() != nullptr) + { + openPluginWindow(); + componentMovedOrResized (true, true); + } } void setContentScaleFactor()