log user role mapping errors

This commit is contained in:
Hugo Renard 2022-04-22 16:38:13 +02:00
parent 8fbc003918
commit 96a2ac44fc
Signed by: hougo
GPG key ID: 3A285FD470209C59

View file

@ -105,6 +105,7 @@ public class UserAdapter extends Adapter<UserModel, UserResource> {
user.getRoleMappingsStream().filter((r) -> r.getFirstAttribute("scim").equals("true"))
.map((r) -> r.getName()).forEach(r -> rolesSet.add(r));
} catch (Exception e) {
LOGGER.error(e);
}
var roles = new String[rolesSet.size()];
rolesSet.toArray(roles);