From 4abc53cb6f1fdbc6005a333ac341789717424565 Mon Sep 17 00:00:00 2001 From: aka4rKO Date: Fri, 22 Nov 2024 18:10:03 +0530 Subject: [PATCH] adressed comment --- .../extensions/authservlet/impl/OBCDSAuthServletImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/org.wso2.openbanking.cds.consent.extensions/src/main/java/org/wso2/openbanking/cds/consent/extensions/authservlet/impl/OBCDSAuthServletImpl.java b/components/org.wso2.openbanking.cds.consent.extensions/src/main/java/org/wso2/openbanking/cds/consent/extensions/authservlet/impl/OBCDSAuthServletImpl.java index 56bd3d20..6e04b83f 100644 --- a/components/org.wso2.openbanking.cds.consent.extensions/src/main/java/org/wso2/openbanking/cds/consent/extensions/authservlet/impl/OBCDSAuthServletImpl.java +++ b/components/org.wso2.openbanking.cds.consent.extensions/src/main/java/org/wso2/openbanking/cds/consent/extensions/authservlet/impl/OBCDSAuthServletImpl.java @@ -99,10 +99,10 @@ public Map updateRequestAttribute(HttpServletRequest httpServlet // Get Customer Type Selection Method from config String customerTypeSelectionMethod = OpenBankingCDSConfigParser.getInstance() .getBNRCustomerTypeSelectionMethod(); - String customerTypeCookieName = OpenBankingCDSConfigParser.getInstance() - .getBNRCustomerTypeSelectionCookieName(); if (CustomerTypeSelectionMethodEnum.COOKIE_DATA.toString().equals(customerTypeSelectionMethod)) { String preSelectedProfileIdFromCookie = null; + String customerTypeCookieName = OpenBankingCDSConfigParser.getInstance() + .getBNRCustomerTypeSelectionCookieName(); Cookie[] cookies = httpServletRequest.getCookies(); for (Cookie cookie : cookies) {