Fix null scope

This commit is contained in:
Andreas Svanberg 2025-03-26 16:42:47 +01:00
parent ed0c510638
commit 0f03bbca52
Signed by: ansv7779
GPG Key ID: 729B051CFFD42F92

@ -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());