From 64dfae23b29ad553c756ca56f474a452c4441d56 Mon Sep 17 00:00:00 2001 From: Aravind Kannan Rathinasabapathi <55327432+Aravind-Kannan@users.noreply.github.com> Date: Mon, 16 Oct 2023 13:20:56 +0530 Subject: [PATCH] :bug: fix: null pointer exception on update user (#155) --- src/main/kotlin/com/hypto/iam/server/service/UsersService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/hypto/iam/server/service/UsersService.kt b/src/main/kotlin/com/hypto/iam/server/service/UsersService.kt index 97f4e510..251d82ed 100644 --- a/src/main/kotlin/com/hypto/iam/server/service/UsersService.kt +++ b/src/main/kotlin/com/hypto/iam/server/service/UsersService.kt @@ -311,7 +311,7 @@ class UsersServiceImpl : KoinComponent, UsersService { ?: throw EntityNotFoundException("User not found") val userStatus = status?.toUserStatus() - if (userRecord.loginAccess == true) { + if (userRecord.loginAccess == true && org.metadata != null) { val identityGroup = gson.fromJson(org.metadata.data(), IdentityGroup::class.java) identityProvider.updateUser(