1 parent a5ece20 commit b167bb5Copy full SHA for b167bb5
1 file changed
source/ButtonComboManager.cpp
@@ -293,6 +293,10 @@ std::optional<std::shared_ptr<ButtonComboInfoIF>> ButtonComboManager::CreateComb
293
err = BUTTON_COMBO_MODULE_ERROR_INVALID_COMBO;
294
return std::nullopt;
295
}
296
+ if (options.callbackOptions.callback == nullptr) {
297
+ err = BUTTON_COMBO_MODULE_ERROR_INVALID_ARGUMENT;
298
+ return std::nullopt;
299
+ }
300
301
bool observer = false;
302
switch (options.buttonComboOptions.type) {
0 commit comments