From 94871d7362972e61e9e123d61108d06fd143b827 Mon Sep 17 00:00:00 2001 From: "Sergey Levchenko (GitHub)" Date: Thu, 18 Aug 2016 18:14:31 +0300 Subject: Fix WARNINGS response from RegisterAppInterface on valid AppHMIType received (#764) After external pull request #702 has been merged appears a problems with `RegisterAppInterface`. If message contains `AppHMIType` array, `RegisterAppInterface` will return WARNING in any case either it's valid or not. Related to: APPLINK-27096 Triggered by: APPLINK-26912 --- .../src/commands/mobile/register_app_interface_request.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/application_manager/src/commands/mobile/register_app_interface_request.cc b/src/components/application_manager/src/commands/mobile/register_app_interface_request.cc index d4ee1f268e..401dead91f 100644 --- a/src/components/application_manager/src/commands/mobile/register_app_interface_request.cc +++ b/src/components/application_manager/src/commands/mobile/register_app_interface_request.cc @@ -90,7 +90,7 @@ std::string AppHMITypeToString(mobile_apis::AppHMIType::eType type) { std::map::const_iterator iter = app_hmi_type_map.find(type); - return app_hmi_type_map.end() == iter ? iter->second : std::string(""); + return app_hmi_type_map.end() != iter ? iter->second : std::string(""); } struct AppHMITypeInserter { -- cgit v1.2.1