diff options
Diffstat (limited to 'src/components/policy/policy_external/src/cache_manager.cc')
-rw-r--r-- | src/components/policy/policy_external/src/cache_manager.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/policy/policy_external/src/cache_manager.cc b/src/components/policy/policy_external/src/cache_manager.cc index 22040c88b2..95b2fda272 100644 --- a/src/components/policy/policy_external/src/cache_manager.cc +++ b/src/components/policy/policy_external/src/cache_manager.cc @@ -340,7 +340,10 @@ const policy_table::AppHMITypes* CacheManager::GetHMITypes( pt_->policy_table.app_policies_section.apps; policy_table::ApplicationPolicies::const_iterator i = apps.find(app_id); if (i != apps.end()) { - return &(*i->second.AppHMIType); + const policy_table::AppHMITypes& app_hmi_types = *i->second.AppHMIType; + if (app_hmi_types.is_initialized()) { + return &app_hmi_types; + } } return NULL; } |