summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/resumption
diff options
context:
space:
mode:
authorAlex <AKutsan@Luxoft.com>2016-10-12 18:23:47 +0300
committerAlex <AKutsan@Luxoft.com>2016-10-12 20:57:35 +0300
commit781f4bc5e79ed6b264e77c9e7025d3be97d3cff0 (patch)
tree931039c957ec761c4f8d922ff1e40a560c797ae8 /src/components/application_manager/src/resumption
parent527c3d63896e82008582bfabf45f40150d930465 (diff)
downloadsdl_core-781f4bc5e79ed6b264e77c9e7025d3be97d3cff0.tar.gz
Remove redundant DCHECK if application unregisters during resumption timer
related issue : APPLINK-28817
Diffstat (limited to 'src/components/application_manager/src/resumption')
-rw-r--r--src/components/application_manager/src/resumption/resume_ctrl_impl.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/application_manager/src/resumption/resume_ctrl_impl.cc b/src/components/application_manager/src/resumption/resume_ctrl_impl.cc
index b0debb204d..2305d5aec0 100644
--- a/src/components/application_manager/src/resumption/resume_ctrl_impl.cc
+++ b/src/components/application_manager/src/resumption/resume_ctrl_impl.cc
@@ -349,9 +349,12 @@ void ResumeCtrlImpl::StartAppHmiStateResumption(
DCHECK_OR_RETURN_VOID(application);
smart_objects::SmartObject saved_app;
const std::string& device_mac = application->mac_address();
- bool result = resumption_storage_->GetSavedApplication(
+ const bool result = resumption_storage_->GetSavedApplication(
application->policy_app_id(), device_mac, saved_app);
- DCHECK_OR_RETURN_VOID(result);
+ if (!result) {
+ LOG4CXX_ERROR(logger_, "Application was not saved");
+ return;
+ }
const uint32_t ign_off_count = saved_app[strings::ign_off_count].asUInt();
bool restore_data_allowed = false;
restore_data_allowed =