From 6168541fac091a6cc2987d1b2d67c2706227aa4d Mon Sep 17 00:00:00 2001 From: rusirijayodaillesinghe Date: Mon, 9 Oct 2023 12:57:41 +0530 Subject: [PATCH] Address review comments --- .../handlers/analytics/SynapseAnalyticsDataProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/handlers/analytics/SynapseAnalyticsDataProvider.java b/components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/handlers/analytics/SynapseAnalyticsDataProvider.java index 41dbae64eb99..7dea8bfca460 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/handlers/analytics/SynapseAnalyticsDataProvider.java +++ b/components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/handlers/analytics/SynapseAnalyticsDataProvider.java @@ -311,7 +311,7 @@ public String getUserName() { if (messageContext.getPropertyKeySet().contains(APIMgtGatewayConstants.END_USER_NAME)) { return (String) messageContext.getProperty(APIMgtGatewayConstants.END_USER_NAME); } - if (messageContext.getPropertyKeySet().contains(APIMgtGatewayConstants.USER_ID)) { + else if (messageContext.getPropertyKeySet().contains(APIMgtGatewayConstants.USER_ID)) { return (String) messageContext.getProperty(APIMgtGatewayConstants.USER_ID); } return null;