From 8b04ccdd71cb5c8729743f896b9a7280e629d20b Mon Sep 17 00:00:00 2001 From: jusung son Date: Thu, 21 Mar 2019 11:37:13 +0900 Subject: [PATCH] Add an acceptance condition to CanReceive() Change-Id: Id19035489ca4706063a915ea2c760ff311921f8c Signed-off-by: jusung son --- notification-ex/abstract_item.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notification-ex/abstract_item.cc b/notification-ex/abstract_item.cc index c196d9c..c7a9a1b 100644 --- a/notification-ex/abstract_item.cc +++ b/notification-ex/abstract_item.cc @@ -350,7 +350,7 @@ list AbstractItem::GetReceiverList() { } bool AbstractItem::CanReceive(std::string id) const { - if (impl_->receiver_group_list_.size() == 0) + if (impl_->receiver_group_list_.size() == 0 || id.empty()) return true; list::iterator iter = std::find(impl_->receiver_group_list_.begin(), -- 2.7.4