Handle cases when std::optional does not contain a value
This commit is contained in:
@ -317,7 +317,7 @@ void ConfigureInput::setPollingResult(const Common::ParamPackage& params, bool a
|
||||
poller->Stop();
|
||||
}
|
||||
|
||||
if (!abort) {
|
||||
if (!abort && input_setter) {
|
||||
(*input_setter)(params);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user