summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorigapchuck <igapchuck@luxoft.com>2018-11-05 10:01:05 +0200
committerigapchuck <igapchuck@luxoft.com>2018-11-05 10:01:05 +0200
commitc73ed4e0d89041779c761d4fc1f9820fe7c5ae94 (patch)
tree95ff3944753e5df1035cc8573b7e0b7f58bc2d43
parent22bdcbc1b20e3a9c3a880474d0a1d08bb195d487 (diff)
downloadsdl_core-fix/fix_sdl_crash_on_boot.tar.gz
Answer to PR comments.fix/fix_sdl_crash_on_boot
-rw-r--r--src/components/application_manager/include/application_manager/rpc_handler_impl.h3
-rw-r--r--src/components/application_manager/src/rpc_handler_impl.cc2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/components/application_manager/include/application_manager/rpc_handler_impl.h b/src/components/application_manager/include/application_manager/rpc_handler_impl.h
index cc617e0214..fa74d6eb44 100644
--- a/src/components/application_manager/include/application_manager/rpc_handler_impl.h
+++ b/src/components/application_manager/include/application_manager/rpc_handler_impl.h
@@ -168,8 +168,7 @@ class RPCHandlerImpl : public RPCHandler,
// Thread that pumps messages coming from HMI.
impl::FromHmiQueue messages_from_hmi_;
- ns_smart_device_link_rpc::V1::v4_protocol_v1_2_no_extra
- v4_protocol_so_factory_;
+ ns_smart_device_link_rpc::V1::v4_protocol_v1_2_no_extra smart_schema_factory_;
#ifdef TELEMETRY_MONITOR
AMTelemetryObserver* metric_observer_;
#endif // TELEMETRY_MONITOR
diff --git a/src/components/application_manager/src/rpc_handler_impl.cc b/src/components/application_manager/src/rpc_handler_impl.cc
index bbb010ac40..5e6a04a3de 100644
--- a/src/components/application_manager/src/rpc_handler_impl.cc
+++ b/src/components/application_manager/src/rpc_handler_impl.cc
@@ -371,7 +371,7 @@ bool RPCHandlerImpl::ConvertMessageToSO(
smart_objects::SmartObjectSPtr msg_to_send =
std::make_shared<smart_objects::SmartObject>(output);
- v4_protocol_so_factory_.attachSchema(*msg_to_send, false);
+ smart_schema_factory_.attachSchema(*msg_to_send, false);
app_manager_.GetRPCService().SendMessageToMobile(msg_to_send);
return false;
}