Skip to content
Snippets Groups Projects
Commit ef088a35 authored by srosse's avatar srosse
Browse files

OO-4888: not all authentications rows have an authentication provider

parent a492b89f
No related branches found
No related tags found
No related merge requests found
...@@ -73,7 +73,9 @@ public class UserNickNameEditController extends FormBasicController { ...@@ -73,7 +73,9 @@ public class UserNickNameEditController extends FormBasicController {
} }
private List<UserAuthenticationRow> getManageableProviders(List<UserAuthenticationRow> auths) { private List<UserAuthenticationRow> getManageableProviders(List<UserAuthenticationRow> auths) {
return auths.stream().filter(auth -> auth.getProvider() return auths.stream()
.filter(auth -> auth.getProvider() != null)
.filter(auth -> auth.getProvider()
.canChangeAuthenticationUsername(auth.getAuthentication().getProvider())) .canChangeAuthenticationUsername(auth.getAuthentication().getProvider()))
.collect(Collectors.toList()); .collect(Collectors.toList());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment