diff --git a/SpiralSynthModular.C b/SpiralSynthModular.C index 9a70d04..1267d82 100644 --- a/SpiralSynthModular.C +++ b/SpiralSynthModular.C @@ -135,10 +135,13 @@ void SynthModular::Update() for(map::iterator i=m_DeviceWinMap.begin(); i!=m_DeviceWinMap.end(); i++) { - // updates the data from the gui thread, if it's not blocking - i->second->m_Device->UpdateChannelHandler(); - // run any commands we've received from the GUI's - i->second->m_Device->ExecuteCommands(); + if (i->second->m_Device) // if it's not a comment + { + // updates the data from the gui thread, if it's not blocking + i->second->m_Device->UpdateChannelHandler(); + // run any commands we've received from the GUI's + i->second->m_Device->ExecuteCommands(); + } } // run the plugins (only ones connected to anything)