Don't add scopes if none are provided

Signed-off-by: Travis Spencer <travis@curity.io>
This commit is contained in:
Travis Spencer 2019-09-28 14:21:01 +02:00
parent ba728eee5d
commit 201264d17b
1 changed files with 2 additions and 1 deletions

View File

@ -131,7 +131,8 @@ public class OpenIdConfiguration implements Serializable
public void addScopes(String... scopes)
{
Collections.addAll(this.scopes, scopes);
if (scopes != null)
Collections.addAll(this.scopes, scopes);
}
public List<String> getScopes()