diff --git a/implementation/runtime/src/application_impl.cpp b/implementation/runtime/src/application_impl.cpp index d21daa89c..e632770ab 100644 --- a/implementation/runtime/src/application_impl.cpp +++ b/implementation/runtime/src/application_impl.cpp @@ -1530,7 +1530,11 @@ std::shared_ptr application_impl::get_configuration() const { } std::shared_ptr application_impl::get_policy_manager() const { +#ifndef VSOMEIP_DISABLE_SECURITY return configuration_->get_policy_manager(); +#endif + VSOMEIP_WARNING << __func__ << ": manager is not available when security is disabled."; + return {}; } diagnosis_t application_impl::get_diagnosis() const {