Commit 30fa5e92 authored by michael.simon's avatar michael.simon
Browse files

Add null check for missing users on identity

parent ff86a82e
......@@ -78,7 +78,10 @@ public class IdentityServiceImpl extends BaseServiceImpl<IdentityEntity, Long> i
for (IdentityEntity id : idList) {
Set<UserEntity> users = id.getUsers();
if (users.size() == 1) {
if (users == null) {
logger.warn("Identity {} has no users", id.getId());
}
else if (users.size() == 1) {
for(UserEntity user : users) {
id.setTwoFaUserId(user.getId().toString());
if (user.getEppn() != null)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment