From: Inkyun Kil Date: Fri, 2 Aug 2019 07:29:02 +0000 (+0900) Subject: Check if bundle data is null X-Git-Tag: submit/tizen/20190806.083651~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a7d191e42bc8371f8ca1503d6c9833eb12197a8;p=platform%2Fcore%2Fappfw%2Fcomponent-based-application.git Check if bundle data is null Change-Id: I861661005a03a1f7f4f1e95d928e007026978a2c Signed-off-by: Inkyun Kil --- 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;