diff options
author | Veronica Veremjova <vveremjova@luxoft.com> | 2016-12-21 16:46:05 +0200 |
---|---|---|
committer | Veronica Veremjova <vveremjova@luxoft.com> | 2016-12-21 16:46:05 +0200 |
commit | 687aa28b64ac21a434ff3bb1258087cdd0c608c9 (patch) | |
tree | 89f8977a44268ef142b392dbf97f56483f59e9ac /src/components/policy/policy_external/src/policy_table | |
parent | 931d18f4c0b86b7bc4f670659732c567d9635f5b (diff) | |
download | sdl_core-687aa28b64ac21a434ff3bb1258087cdd0c608c9.tar.gz |
Add check for initialisation connection_type
Related to APPLINK-30872
Diffstat (limited to 'src/components/policy/policy_external/src/policy_table')
-rw-r--r-- | src/components/policy/policy_external/src/policy_table/types.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/policy/policy_external/src/policy_table/types.cc b/src/components/policy/policy_external/src/policy_table/types.cc index 735814097f..4451131e3d 100644 --- a/src/components/policy/policy_external/src/policy_table/types.cc +++ b/src/components/policy/policy_external/src/policy_table/types.cc @@ -1698,6 +1698,10 @@ bool DeviceParams::struct_empty() const { if (max_number_rfcom_ports.is_initialized()) { return false; } + + if (connection_type.is_initialized()) { + return false; + } return true; } @@ -1728,6 +1732,9 @@ void DeviceParams::ReportErrors(rpc::ValidationReport* report__) const { max_number_rfcom_ports.ReportErrors( &report__->ReportSubobject("max_number_rfcom_ports")); } + if (!connection_type.is_valid()) { + connection_type.ReportErrors(&report__->ReportSubobject("connection_type")); + } } void DeviceParams::SetPolicyTableType(PolicyTableType pt_type) { |