Merge pull request 'Handle null values while fetching default savings goal of users' (#44) from vigneshan/device-mgt-core:fix/qr-gen into master

Reviewed-on: community/device-mgt-core#44
pull/1/head
Pahansith Gunathilake 2 years ago
commit 5362a28573

@ -104,7 +104,7 @@ public class APIManagementProviderServiceImpl implements APIManagementProviderSe
String tenantDomain = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantDomain();
if (StringUtils.isEmpty(username)) {
username = PrivilegedCarbonContext.getThreadLocalCarbonContext().getUsername();
username = PrivilegedCarbonContext.getThreadLocalCarbonContext().getUsername() + "@" + tenantDomain;
}
try {
APIConsumer apiConsumer = API_MANAGER_FACTORY.getAPIConsumer(username);

Loading…
Cancel
Save