diff options
author | AGaliuzov <AGaliuzov@luxoft.com> | 2015-12-04 11:50:09 +0200 |
---|---|---|
committer | AGaliuzov <AGaliuzov@luxoft.com> | 2015-12-04 11:50:09 +0200 |
commit | 6612a244b195d854853f025c8fd5f17d3d48965e (patch) | |
tree | 8cf4683aaf586bfce1a3a92c0ecaf95041c9f530 | |
parent | 4892b91a9c61e9d1fd228100aea117ca0c1b987e (diff) | |
parent | 013a6f8294effd1ba4374cabaa08bbba71127a65 (diff) | |
download | sdl_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.cc | 4 |
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); |