From 07af0b73b9e9e72e1eb9c07adfe000d080dbf95b Mon Sep 17 00:00:00 2001 From: YuriyZ Date: Tue, 20 Aug 2024 12:10:12 +0300 Subject: [PATCH] avoid npe in RegisterParamsValidator https://github.com/GluuFederation/oxAuth/issues/1918 --- .../oxauth/model/registration/RegisterParamsValidator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/src/main/java/org/gluu/oxauth/model/registration/RegisterParamsValidator.java b/Server/src/main/java/org/gluu/oxauth/model/registration/RegisterParamsValidator.java index 899a6e9d3..428b7e893 100644 --- a/Server/src/main/java/org/gluu/oxauth/model/registration/RegisterParamsValidator.java +++ b/Server/src/main/java/org/gluu/oxauth/model/registration/RegisterParamsValidator.java @@ -349,7 +349,7 @@ public boolean validateInitiateLoginUri(String initiateLoginUri) { private boolean checkWhiteListRedirectUris(List redirectUris) { boolean valid = true; List whiteList = appConfiguration.getClientWhiteList(); - boolean wildcardSupported = appConfiguration.getAllowWildcardRedirectUri(); + boolean wildcardSupported = isTrue(appConfiguration.getAllowWildcardRedirectUri()); URLPatternList urlPatternList = new URLPatternList(whiteList, wildcardSupported); for (String redirectUri : redirectUris) { @@ -365,7 +365,7 @@ private boolean checkWhiteListRedirectUris(List redirectUris) { private boolean checkBlackListRedirectUris(List redirectUris) { boolean valid = true; List blackList = appConfiguration.getClientBlackList(); - boolean wildcardSupported = appConfiguration.getAllowWildcardRedirectUri(); + boolean wildcardSupported = isTrue(appConfiguration.getAllowWildcardRedirectUri()); URLPatternList urlPatternList = new URLPatternList(blackList, wildcardSupported); for (String redirectUri : redirectUris) {