summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Levchenko (GitHub) <slevchenko.work@gmail.com>2016-08-18 18:14:31 +0300
committerAnton Hrytsevich (GitHub) <AGritsevich@users.noreply.github.com>2016-08-18 18:14:31 +0300
commit94871d7362972e61e9e123d61108d06fd143b827 (patch)
treeeff0a0e4626c2cfd8d55fb104667f54bbc7d506e
parent414f8cbc5b792b1d935a1155327ae1d64ae2ac71 (diff)
downloadsdl_core-94871d7362972e61e9e123d61108d06fd143b827.tar.gz
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
-rw-r--r--src/components/application_manager/src/commands/mobile/register_app_interface_request.cc2
1 files changed, 1 insertions, 1 deletions
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<mobile_apis::AppHMIType::eType, std::string>::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 {