summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrunov Dmitrii <dtrunov@luxoft.com>2014-08-08 18:44:43 +0300
committerTrunov Dmitrii <dtrunov@luxoft.com>2014-08-08 18:44:43 +0300
commitf675be4e745361c65a197bacea41c85a1127e50a (patch)
tree35b81faf3edcd961d17797219712efd4431f04d5
parent6e6e318566ff9e03aae4e0cab89dd8b9876abf28 (diff)
downloadsmartdevicelink-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.cc4
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) {