diff options
Diffstat (limited to 'src/components/application_manager/src/resumption/resume_ctrl_impl.cc')
-rw-r--r-- | src/components/application_manager/src/resumption/resume_ctrl_impl.cc | 7 |
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 = |