summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/application_manager_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/src/application_manager_impl.cc')
-rw-r--r--src/components/application_manager/src/application_manager_impl.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/components/application_manager/src/application_manager_impl.cc b/src/components/application_manager/src/application_manager_impl.cc
index ec37e3b51f..5066c6dfc6 100644
--- a/src/components/application_manager/src/application_manager_impl.cc
+++ b/src/components/application_manager/src/application_manager_impl.cc
@@ -3984,11 +3984,19 @@ bool ApplicationManagerImpl::ResetVrHelpTitleItems(
const std::string& vr_help_title = get_settings().vr_help_title();
smart_objects::SmartObject so_vr_help_title(vr_help_title);
-
app->reset_vr_help_title();
- app->reset_vr_help();
app->set_vr_help_title(so_vr_help_title);
+ app->reset_vr_help();
+ smart_objects::SmartObjectSPtr so_vr_help =
+ MessageHelper::CreateAppVrHelp(app);
+ if (!so_vr_help->keyExists(strings::vr_help)) {
+ SDL_LOG_WARN("Failed to create vr_help items. Resetting to empty array");
+ (*so_vr_help)[strings::vr_help] =
+ smart_objects::SmartObject(smart_objects::SmartType_Array);
+ }
+ app->set_vr_help((*so_vr_help)[strings::vr_help]);
+
return true;
}