aboutsummaryrefslogtreecommitdiff
path: root/modules/authmodule-eIDAS-v2
diff options
context:
space:
mode:
authorThomas <>2023-03-02 12:37:04 +0100
committerThomas <>2023-03-02 12:37:04 +0100
commit76d4bf558e6bdae365399e61624cacbfeff79999 (patch)
treee46641b2d26b433e2817d7ede8bbac0d8f2f5eef /modules/authmodule-eIDAS-v2
parent8080ae3607971fa1ffc5e17151be935b466305c1 (diff)
downloadNational_eIDAS_Gateway-76d4bf558e6bdae365399e61624cacbfeff79999.tar.gz
National_eIDAS_Gateway-76d4bf558e6bdae365399e61624cacbfeff79999.tar.bz2
National_eIDAS_Gateway-76d4bf558e6bdae365399e61624cacbfeff79999.zip
fix(connector): mitigate possible NullPointerExceptionproxyservice_1.0.3connector_1.3.8
Diffstat (limited to 'modules/authmodule-eIDAS-v2')
-rw-r--r--modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/handler/AbstractEidProcessor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/handler/AbstractEidProcessor.java b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/handler/AbstractEidProcessor.java
index 80348f3d..57b8ab16 100644
--- a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/handler/AbstractEidProcessor.java
+++ b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/handler/AbstractEidProcessor.java
@@ -322,8 +322,9 @@ public abstract class AbstractEidProcessor implements INationalEidProcessor {
}
private void buildNameIdPolicy(Builder authnRequestBuilder, String countryCode) {
+ String ccSelector = countryCode != null ? "." + countryCode.toLowerCase() : "";
String ccSpecificPolicy = basicConfig.getBasicConfiguration(
- Constants.CONFIG_PROP_EIDAS_NODE_NAMEIDFORMAT + "." + countryCode.toLowerCase());
+ Constants.CONFIG_PROP_EIDAS_NODE_NAMEIDFORMAT + ccSelector);
if (StringUtils.isNotEmpty(ccSpecificPolicy)) {
log.debug("Using specific nameIdFormat:{} to request: {}", ccSpecificPolicy, countryCode);