fix crash when in alert state with no event

This commit is contained in:
Isaac Connor 2021-05-31 16:02:42 -04:00
parent cc3bce48b7
commit f8b779dc25
1 changed files with 1 additions and 1 deletions

View File

@ -2231,7 +2231,7 @@ bool Monitor::Analyse() {
} }
} else if ( state == ALERT ) { } else if ( state == ALERT ) {
// Alert means this frame has no motion, but we were alarmed and are still recording. // Alert means this frame has no motion, but we were alarmed and are still recording.
if ( noteSetMap.size() > 0 ) if ((noteSetMap.size() > 0) and event)
event->updateNotes(noteSetMap); event->updateNotes(noteSetMap);
} else if ( state == TAPE ) { } else if ( state == TAPE ) {
// bulk frame code moved to event. // bulk frame code moved to event.