Skip to content

Commit

Permalink
Merge pull request Onlineberatung#195 from Onlineberatung/OB-9473-fix…
Browse files Browse the repository at this point in the history
…-NPE-for-agency-service-if-central-data-protection-toggle-is-not-existent

fix: NPE fix in case feature central data protection is not existent
  • Loading branch information
tkuzynow authored Jan 29, 2024
2 parents 3b544d9 + 7270c54 commit 8e346ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8e346ec

Please sign in to comment.