We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 599a932 + d70cc97 commit 120f8ecCopy full SHA for 120f8ec
src/main/java/org/jenkinsci/plugins/GithubOAuthUserDetails.java
@@ -42,7 +42,9 @@ public GrantedAuthority[] getAuthorities() {
42
if (!hasGrantedAuthorities) {
43
try {
44
GHUser user = authenticationToken.loadUser(getUsername());
45
- setAuthorities(authenticationToken.getGrantedAuthorities(user));
+ if(user != null) {
46
+ setAuthorities(authenticationToken.getGrantedAuthorities(user));
47
+ }
48
} catch (IOException e) {
49
throw new RuntimeException(e);
50
}
0 commit comments