From 3a7d191e42bc8371f8ca1503d6c9833eb12197a8 Mon Sep 17 00:00:00 2001 From: Inkyun Kil Date: Fri, 2 Aug 2019 16:29:02 +0900 Subject: [PATCH] Check if bundle data is null Change-Id: I861661005a03a1f7f4f1e95d928e007026978a2c Signed-off-by: Inkyun Kil --- component_based/base/application_base.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/component_based/base/application_base.cc b/component_based/base/application_base.cc index b1ed73a..8c8def5 100644 --- a/component_based/base/application_base.cc +++ b/component_based/base/application_base.cc @@ -96,8 +96,11 @@ void ApplicationBase::Impl::OnBaseTerminate() { } void ApplicationBase::Impl::OnBaseReceive(aul_type type, bundle* b) { - LOGD(""); - tizen_base::Bundle data(b); + LOGD("type : %d", type); + + tizen_base::Bundle data; + if (b) + data = std::move(tizen_base::Bundle(b)); std::string comp_id = data.GetString(AUL_K_COMPONENT_ID); std::string inst_id = data.GetString(AUL_K_INSTANCE_ID); std::string rpc_port; -- 2.34.1