From 7270c54247e0596410862ba52f05b95ce32f6862 Mon Sep 17 00:00:00 2001 From: tkuzynow Date: Mon, 29 Jan 2024 11:15:46 +0100 Subject: [PATCH] fix: NPE fix in case feature central data protection is not existent --- .../de/caritas/cob/agencyservice/api/service/AgencyService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {