diff options
author | Artem Nosach <ANosach@luxoft.com> | 2015-05-20 14:40:20 +0300 |
---|---|---|
committer | Artem Nosach <ANosach@luxoft.com> | 2015-05-20 14:40:20 +0300 |
commit | 6f43dcf2f5ea88adf69324b453021c7d80e147ff (patch) | |
tree | e7605332225c02007c1348189eb9f70b917d2aa2 | |
parent | fa232c496b8cb140ad5bcaf1f9e573c1f4e4b42a (diff) | |
download | smartdevicelink-6f43dcf2f5ea88adf69324b453021c7d80e147ff.tar.gz |
Post review changes.
-rw-r--r-- | src/components/application_manager/src/message_helper.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/application_manager/src/message_helper.cc b/src/components/application_manager/src/message_helper.cc index d6521d1e7..43fd87538 100644 --- a/src/components/application_manager/src/message_helper.cc +++ b/src/components/application_manager/src/message_helper.cc @@ -1231,7 +1231,9 @@ bool MessageHelper::CreateHMIApplicationStruct(ApplicationConstSharedPtr app, } const SmartObject* app_types = app->app_types(); + DCHECK_OR_RETURN(app_types, false); const SmartObject* ngn_media_screen_name = app->ngn_media_screen_name(); + DCHECK_OR_RETURN(ngn_media_screen_name, false); const connection_handler::DeviceHandle handle = app->device(); std::string device_name = ApplicationManagerImpl::instance()->GetDeviceName(handle); @@ -1253,8 +1255,9 @@ bool MessageHelper::CreateHMIApplicationStruct(ApplicationConstSharedPtr app, if (!app->IsRegistered()) { output[strings::greyOut] = app->is_greyed_out(); - if (!app->tts_name()->empty()) { - const SmartObject* app_tts_name = app->tts_name(); + const SmartObject* app_tts_name = app->tts_name(); + DCHECK_OR_RETURN(app_tts_name, false); + if (!app_tts_name->empty()) { SmartObject output_tts_name = SmartObject(SmartType_Array); for (uint32_t i = 0; i < app_tts_name->length(); ++i) { |