Skip to content

Commit

Permalink
Fix NPE in GitLabHost::isMemberOf
Browse files Browse the repository at this point in the history
Reviewed-by: rwestberg
  • Loading branch information
edvbld committed Oct 4, 2019
1 parent fc52685 commit 70f9f00
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -153,8 +153,7 @@ public boolean isMemberOf(String groupId, HostUserDetails user) {
}
var details = request.get("groups/" + gid + "/members/" + user.id())
.onError(r -> JSON.of())
.execute()
.asObject();
.execute();
return !details.isNull();
}
}

0 comments on commit 70f9f00

Please sign in to comment.