Add nullptr checks to prevent a crash when in NODECT mode

This commit is contained in:
Jonathan Bennett 2022-01-08 13:17:04 -06:00
parent a153798b47
commit a3c298ca93
1 changed files with 2 additions and 0 deletions

View File

@ -2163,6 +2163,7 @@ bool Monitor::Analyse() {
snap->analysis_image->Overlay(*(zone.AlarmImage()));
} // end if zone is alarmed
} // end foreach zone
if (snap->analysis_image != nullptr)
alarm_image.Assign(*(snap->analysis_image));
} // end if image.
@ -2177,6 +2178,7 @@ bool Monitor::Analyse() {
snap->analysis_image->Overlay(*(zone.AlarmImage()));
} // end if zone is alarmed
} // end foreach zone
if (snap->analysis_image != nullptr)
alarm_image.Assign(*(snap->analysis_image));
}