diff --git a/src/main/java/de/caritas/cob/agencyservice/api/service/AgencyService.java b/src/main/java/de/caritas/cob/agencyservice/api/service/AgencyService.java index 3a41379b..49dde67f 100644 --- a/src/main/java/de/caritas/cob/agencyservice/api/service/AgencyService.java +++ b/src/main/java/de/caritas/cob/agencyservice/api/service/AgencyService.java @@ -314,7 +314,7 @@ protected String getRenderedAgencySpecificPrivacy(Agency agency) { RestrictedTenantDTO tenantDataHoldingFeatureToggles = getTenantDataRelevantForFeatureToggles( agency); Settings settings = tenantDataHoldingFeatureToggles != null ? tenantDataHoldingFeatureToggles.getSettings() : null; - if (settings != null && settings.getFeatureCentralDataProtectionTemplateEnabled()) { + if (settings != null && settings.getFeatureCentralDataProtectionTemplateEnabled() != null && Boolean.TRUE.equals(settings.getFeatureCentralDataProtectionTemplateEnabled())) { return centralDataProtectionTemplateService.renderPrivacyTemplateWithRenderedPlaceholderValues( agency); } else {