Don't add scopes if none are provided
Signed-off-by: Travis Spencer <travis@curity.io>
This commit is contained in:
parent
ba728eee5d
commit
201264d17b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue