1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 15:23:48 +01:00

Make sure the effect ID is valid (non-blank)

This commit is contained in:
Leland Lucius
2015-05-12 10:40:28 -05:00
parent 3391203e93
commit 07f965a057

View File

@@ -675,6 +675,12 @@ int EffectManager::GetRealtimeLatency()
Effect *EffectManager::GetEffect(const PluginID & ID) Effect *EffectManager::GetEffect(const PluginID & ID)
{ {
// Must have a "valid" ID
if (ID.IsEmpty())
{
return NULL;
}
// TODO: This is temporary and should be redone when all effects are converted // TODO: This is temporary and should be redone when all effects are converted
if (mEffects.find(ID) == mEffects.end()) if (mEffects.find(ID) == mEffects.end())
{ {