Skip to content

Commit

Permalink
[JENKINS-49236] - make getGroupMembershipRoles() tolerant against nulls
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-nenashev committed Jan 29, 2018
1 parent 75eeee9 commit 025fec0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -114,7 +114,7 @@ public final GrantedAuthority[] getGrantedAuthorities(ReverseProxyUserDetails us
public Set<GrantedAuthority> getGroupMembershipRoles(String username) {
Set<GrantedAuthority> authorities = new HashSet<GrantedAuthority>();

final @CheckForNull GrantedAuthority[] contextAuthorities = authContext.get(username);
final @CheckForNull GrantedAuthority[] contextAuthorities = authContext != null ? authContext.get(username) : null;

SearchTemplate searchTemplate = new UserSearchTemplate(username);

Expand Down

0 comments on commit 025fec0

Please sign in to comment.