summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAGaliuzov <AGaliuzov@luxoft.com>2015-12-04 11:50:09 +0200
committerAGaliuzov <AGaliuzov@luxoft.com>2015-12-04 11:50:09 +0200
commit6612a244b195d854853f025c8fd5f17d3d48965e (patch)
tree8cf4683aaf586bfce1a3a92c0ecaf95041c9f530
parent4892b91a9c61e9d1fd228100aea117ca0c1b987e (diff)
parent013a6f8294effd1ba4374cabaa08bbba71127a65 (diff)
downloadsdl_core-6612a244b195d854853f025c8fd5f17d3d48965e.tar.gz
Merge pull request #282 from LuxoftSDL/hotfix/SDL_writes_to_DB_incorrect_value_as_imageType_after_IGN_CYCLE
Add checking of SO field.
-rw-r--r--src/components/application_manager/src/message_helper.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/application_manager/src/message_helper.cc b/src/components/application_manager/src/message_helper.cc
index ee41ce5bfe..a3f8adbc70 100644
--- a/src/components/application_manager/src/message_helper.cc
+++ b/src/components/application_manager/src/message_helper.cc
@@ -1102,11 +1102,11 @@ smart_objects::SmartObjectList MessageHelper::CreateAddCommandRequestToHMI(
msg_params[strings::menu_params] = (*i->second)[strings::menu_params];
msg_params[strings::app_id] = app->app_id();
- if (((*i->second)[strings::cmd_icon].keyExists(strings::value))
+ if (((*i->second).keyExists(strings::cmd_icon))
&& (0 < (*i->second)[strings::cmd_icon][strings::value].length())) {
msg_params[strings::cmd_icon] = (*i->second)[strings::cmd_icon];
msg_params[strings::cmd_icon][strings::value] =
- (*i->second)[strings::cmd_icon][strings::value].asString();
+ (*i->second)[strings::cmd_icon][strings::value].asString();
}
(*ui_command)[strings::msg_params] = msg_params;
requests.push_back(ui_command);