From 36e665e5f9aca46bd5170916c4b869dda1dcdb71 Mon Sep 17 00:00:00 2001 From: Junghoon Park Date: Tue, 30 Jul 2019 19:58:49 +0900 Subject: [PATCH] Send null item for deleting all items - Because noti_ex_item_h is made by Handle object which are holding shared pointer, it can't be nullptr - The callback for deleting items expects a valid item Change-Id: Iaf029fd2197a2cdbb2731505559b6e1d79ab47ee Signed-off-by: Junghoon Park --- notification-ex/manager.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notification-ex/manager.cc b/notification-ex/manager.cc index cb43e87..86d7b09 100644 --- a/notification-ex/manager.cc +++ b/notification-ex/manager.cc @@ -27,6 +27,7 @@ #include "notification-ex/dbus_connection_manager.h" #include "notification-ex/ex_util.h" #include "notification-ex/item_info_internal.h" +#include "notification-ex/null_item.h" #ifdef LOG_TAG #undef LOG_TAG @@ -203,7 +204,7 @@ void Manager::OnEvent(const IEventInfo& info, list serialized) { case EventInfo::Count: break; case EventInfo::DeleteAll: - OnDelete(info, nullptr); + OnDelete(info, shared_ptr(new NullItem())); break; case EventInfo::Custom: break; -- 2.7.4