1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00

VST3: Added a nullptr check before dereferencing juceVST3EditController in processParameterChanges() to fix a crash in Live

This commit is contained in:
ed 2019-11-05 17:02:09 +00:00
parent 36187fb170
commit 7b43ac0cfe

View file

@ -2427,7 +2427,7 @@ public:
pluginInstance->setCurrentProgram (programValue);
}
#if JUCE_VST3_EMULATE_MIDI_CC_WITH_PARAMETERS
else if (juceVST3EditController->isMidiControllerParamID (vstParamID))
else if (juceVST3EditController != nullptr && juceVST3EditController->isMidiControllerParamID (vstParamID))
addParameterChangeToMidiBuffer (offsetSamples, vstParamID, value);
#endif
else