From: mk5004.lee Date: Thu, 19 Mar 2020 08:33:05 +0000 (+0900) Subject: To not to GetSharedPath if there is no image item in chat-message item X-Git-Tag: submit/tizen_5.5/20200319.091551^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e463504afefac38baf1eb10c0e0bdd06d4649a7;p=platform%2Fcore%2Fapi%2Fnotification.git To not to GetSharedPath if there is no image item in chat-message item Change-Id: Icd6d0d180707546db984e18edff13477ceedd971 Signed-off-by: mk5004.lee --- diff --git a/notification-ex/chat_message_item.cc b/notification-ex/chat_message_item.cc index 6bc1934e..c5ceb872 100644 --- a/notification-ex/chat_message_item.cc +++ b/notification-ex/chat_message_item.cc @@ -162,9 +162,11 @@ bool ChatMessageItem::IsItemTypeExist(int type) { std::list ChatMessageItem::GetSharedPath() const { std::list ret; - auto image = impl_->image_->GetSharedPath(); - for (auto& i : image) { - ret.push_back(std::move(i)); + if (impl_->image_ != nullptr) { + auto image = impl_->image_->GetSharedPath(); + for (auto& i : image) { + ret.push_back(std::move(i)); + } } return ret;