From 06b2f9eaf47b6965d10bc58ad7770c384b418b56 Mon Sep 17 00:00:00 2001 From: "mk5004.lee" Date: Fri, 7 Feb 2020 18:57:31 +0900 Subject: [PATCH] Fix TextItem create issue - 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 --- notification-ex/stub.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/notification-ex/stub.cc b/notification-ex/stub.cc index b11bd92..70c91e0 100644 --- a/notification-ex/stub.cc +++ b/notification-ex/stub.cc @@ -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)); -- 2.7.4