Fix TextItem create issue 77/224277/1
authormk5004.lee <mk5004.lee@samsung.com>
Fri, 7 Feb 2020 09:57:31 +0000 (18:57 +0900)
committermk5004.lee <mk5004.lee@samsung.com>
Fri, 7 Feb 2020 09:57:31 +0000 (18:57 +0900)
- If the id is null, a crash occurs.
  So in the case of null, it was modified to hand over "".

Change-Id: I1e512482a55bbb09279d821ecb62b3d63608f075
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
notification-ex/stub.cc

index b11bd92..70c91e0 100644 (file)
@@ -3107,6 +3107,9 @@ extern "C" EXPORT_API int noti_ex_item_text_create(noti_ex_item_h *handle,
 
   TextItem* p;
 
+  if (id == NULL)
+    id = "";
+
   if (hyperlink)
     p = new (std::nothrow) TextItem(id, std::string(text),
                 std::string(hyperlink));