Skip to content

Commit

Permalink
fix: NPE fix in case feature central data protection is not existent
Browse files Browse the repository at this point in the history
  • Loading branch information
tkuzynow committed Jan 29, 2024
1 parent 3b544d9 commit 7270c54
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 7270c54

Please sign in to comment.