From ca6134115c8e34913237f1a26fe1bd52c662e35d Mon Sep 17 00:00:00 2001 From: NipuniBhagya Date: Fri, 18 Oct 2024 12:06:25 +0530 Subject: [PATCH] Fix minor issue in the service holder --- .../api/server/idp/common/IdentityProviderServiceHolder.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/org.wso2.carbon.identity.api.server.idp/org.wso2.carbon.identity.api.server.idp.common/src/main/java/org/wso2/carbon/identity/api/server/idp/common/IdentityProviderServiceHolder.java b/components/org.wso2.carbon.identity.api.server.idp/org.wso2.carbon.identity.api.server.idp.common/src/main/java/org/wso2/carbon/identity/api/server/idp/common/IdentityProviderServiceHolder.java index a9c6a3d6cd..113d5d9e17 100644 --- a/components/org.wso2.carbon.identity.api.server.idp/org.wso2.carbon.identity.api.server.idp.common/src/main/java/org/wso2/carbon/identity/api/server/idp/common/IdentityProviderServiceHolder.java +++ b/components/org.wso2.carbon.identity.api.server.idp/org.wso2.carbon.identity.api.server.idp.common/src/main/java/org/wso2/carbon/identity/api/server/idp/common/IdentityProviderServiceHolder.java @@ -31,8 +31,7 @@ public class IdentityProviderServiceHolder { private IdentityProviderServiceHolder() {} private static class IdentityProviderManagerHolder { - static final IdentityProviderManager SERVICE = (IdentityProviderManager) PrivilegedCarbonContext - .getThreadLocalCarbonContext().getOSGiService(IdentityProviderManager.class, null); + static final IdentityProviderManager SERVICE = IdentityProviderManager.getInstance(); } private static class ClaimMetadataManagementServiceHolder {