diff options
author | Trunov Dmitrii <dtrunov@luxoft.com> | 2014-08-08 18:44:43 +0300 |
---|---|---|
committer | Trunov Dmitrii <dtrunov@luxoft.com> | 2014-08-08 18:44:43 +0300 |
commit | f675be4e745361c65a197bacea41c85a1127e50a (patch) | |
tree | 35b81faf3edcd961d17797219712efd4431f04d5 | |
parent | 6e6e318566ff9e03aae4e0cab89dd8b9876abf28 (diff) | |
download | smartdevicelink-f675be4e745361c65a197bacea41c85a1127e50a.tar.gz |
APPLINK-8637:SDL: Empty Show value parameter in Image structure should clear the graphic
-rw-r--r-- | src/components/application_manager/src/commands/mobile/show_request.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/application_manager/src/commands/mobile/show_request.cc b/src/components/application_manager/src/commands/mobile/show_request.cc index 5f397ecb3..7bfdccc65 100644 --- a/src/components/application_manager/src/commands/mobile/show_request.cc +++ b/src/components/application_manager/src/commands/mobile/show_request.cc @@ -92,7 +92,9 @@ void ShowRequest::Run() { mobile_apis::Result::eType verification_result = mobile_apis::Result::SUCCESS; - if ((*message_)[strings::msg_params].keyExists(strings::graphic)) { + if (((*message_)[strings::msg_params].keyExists(strings::graphic)) && + ((*message_)[strings::msg_params] + [strings::graphic][strings::value].asString()).length()) { verification_result = MessageHelper::VerifyImage( (*message_)[strings::msg_params][strings::graphic], app); if (mobile_apis::Result::SUCCESS != verification_result) { |