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
1 changed files with 6 additions and 0 deletions

View File

@ -675,6 +675,12 @@ int EffectManager::GetRealtimeLatency()
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
if (mEffects.find(ID) == mEffects.end())
{