We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e4f98c commit fc6d246Copy full SHA for fc6d246
1 file changed
Source/Processors/GenericProcessor/GenericProcessor.cpp
@@ -1402,6 +1402,12 @@ int GenericProcessor::checkForEvents (bool checkForSpikes)
1402
1403
void GenericProcessor::addEvent (const Event* event, int sampleNum)
1404
{
1405
+ if (event == nullptr || event->getChannelInfo() == nullptr)
1406
+ {
1407
+ jassertfalse; // this should never happen
1408
+ return;
1409
+ }
1410
+
1411
size_t size = event->getChannelInfo()->getDataSize() + event->getChannelInfo()->getTotalEventMetadataSize() + EVENT_BASE_SIZE;
1412
1413
HeapBlock<char> buffer (size);
0 commit comments