Send null item for deleting all items 50/211150/1
authorJunghoon Park <jh9216.park@samsung.com>
Tue, 30 Jul 2019 10:58:49 +0000 (19:58 +0900)
committerJunghoon Park <jh9216.park@samsung.com>
Tue, 30 Jul 2019 11:04:20 +0000 (20:04 +0900)
- 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 <jh9216.park@samsung.com>
notification-ex/manager.cc

index cb43e87583f4ac04b4e3de0fb47d6c43257b7b80..86d7b09d5fea2b182c3d25a85cb72333416dd680 100644 (file)
@@ -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<Bundle> serialized) {
     case EventInfo::Count:
       break;
     case EventInfo::DeleteAll:
-      OnDelete(info, nullptr);
+      OnDelete(info, shared_ptr<AbstractItem>(new NullItem()));
       break;
     case EventInfo::Custom:
       break;