Skip to content

Commit

Permalink
Avoid NPE when there is no grant #1499
Browse files Browse the repository at this point in the history
  • Loading branch information
jgomer2001 committed Nov 25, 2020
1 parent 45d678a commit ebd7f2b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -160,7 +160,7 @@ private Response introspect(String p_authorization, String p_token, String token
}

// Make scopes conform as required by spec, see #1499
if (!appConfiguration.getIntrospectionResponseScopesBackwardCompatibility()) {
if (response.getScope()!= null && !appConfiguration.getIntrospectionResponseScopesBackwardCompatibility()) {
String scopes = StringUtils.join(response.getScope().toArray(), " ");
responseAsJsonObject.put("scope", scopes);
}
Expand Down

0 comments on commit ebd7f2b

Please sign in to comment.