From 76c50bb7176631e7340375c4a64339980266dea5 Mon Sep 17 00:00:00 2001 From: AKalinich-Luxoft Date: Tue, 3 Oct 2017 12:15:18 +0300 Subject: Fixed requests param reading from incoming message There was a problem that asBool() function of smart object returns false for string/array/object types so this params will no be included to params check list and will not be cutted off after that. This check was replaced to ignore only null/ivalid smart object types. --- .../application_manager/src/commands/command_request_impl.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/application_manager/src/commands/command_request_impl.cc b/src/components/application_manager/src/commands/command_request_impl.cc index d283c648a9..92098935fe 100644 --- a/src/components/application_manager/src/commands/command_request_impl.cc +++ b/src/components/application_manager/src/commands/command_request_impl.cc @@ -611,7 +611,10 @@ bool CommandRequestImpl::CheckAllowedParameters() { smart_objects::SmartMap::const_iterator iter_end = s_map.map_end(); for (; iter != iter_end; ++iter) { - if (iter->second.asBool()) { + if (helpers::Compare( + iter->second.getType(), + smart_objects::SmartType_Null, + smart_objects::SmartType_Invalid)) { LOG4CXX_DEBUG(logger_, "Request's param: " << iter->first); params.insert(iter->first); } -- cgit v1.2.1