diff --git a/src/Notifier.h b/src/Notifier.h index e978446..31840fc 100644 --- a/src/Notifier.h +++ b/src/Notifier.h @@ -123,7 +123,7 @@ public: using CallbackType = typename notification_traits::callback_type; assert(notification.tag > NotificationConst::UNUSED_TAG); - if (_callbacks[notification.tag] == nullptr) + if (_callbacks.find(notification.tag) == _callbacks.end()) { return; }