Fix null scope
This commit is contained in:
parent
ed0c510638
commit
0f03bbca52
@ -15,6 +15,9 @@ public record ClientRow(
|
||||
String clientSecret)
|
||||
{
|
||||
public Set<String> scopeSet() {
|
||||
if (scopes == null) {
|
||||
return Set.of();
|
||||
}
|
||||
return Arrays.stream(this.scopes.split(" "))
|
||||
.filter(Predicate.not(String::isBlank))
|
||||
.collect(Collectors.toUnmodifiableSet());
|
||||
|
Loading…
x
Reference in New Issue
Block a user