diff --git a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp index 63f4612348..20559c16cb 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp @@ -492,8 +492,12 @@ public: // copy back any temp channels that may have been used.. for (i = 0; i < numOut; ++i) - if (const FloatType* const chan = tmpBuffers.tempChannels.getUnchecked(i)) + { + const FloatType* const chan = tmpBuffers.tempChannels.getUnchecked(i); + + if (chan != nullptr && outputs[i] != nullptr) memcpy (outputs[i], chan, sizeof (FloatType) * (size_t) numSamples); + } } }