Add nullptr checks to prevent a crash when in NODECT mode
This commit is contained in:
parent
a153798b47
commit
a3c298ca93
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue