Skip to content

Commit

Permalink
fix: feature toggle boolean check
Browse files Browse the repository at this point in the history
  • Loading branch information
tkuzynow committed Nov 9, 2023
1 parent f75c437 commit c15bffa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ 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
&& settings.getFeatureCentralDataProtectionTemplateEnabled()) {
return centralDataProtectionTemplateService.renderPrivacyTemplateWithRenderedPlaceholderValues(
agency);
} else {
Expand Down

0 comments on commit c15bffa

Please sign in to comment.