fix segfault when debbing is turned on for zma

pull/2676/head
Isaac Connor 2019-07-31 17:17:54 -04:00
parent 90cb5d018a
commit 14ed777eeb
1 changed files with 1 additions and 1 deletions

View File

@ -1530,7 +1530,7 @@ bool Monitor::Analyse() {
Info("%s: %03d - Closing event %" PRIu64 ", continuous end, alarm begins", Info("%s: %03d - Closing event %" PRIu64 ", continuous end, alarm begins",
name, image_count, event->Id()); name, image_count, event->Id());
closeEvent(); closeEvent();
} else { } else if ( event ) {
// This is so if we need more than 1 alarm frame before going into alarm, so it is basically if we have enough alarm frames // This is so if we need more than 1 alarm frame before going into alarm, so it is basically if we have enough alarm frames
Debug(3, "pre-alarm-count in event %d, event frames %d, alarm frames %d event length %d >=? %d", Debug(3, "pre-alarm-count in event %d, event frames %d, alarm frames %d event length %d >=? %d",
Event::PreAlarmCount(), event->Frames(), event->AlarmFrames(), Event::PreAlarmCount(), event->Frames(), event->AlarmFrames(),