a fix for a NullPointerException whenever a client requests a client scope to be granted.

pull/576/merge
kangelov 2014-04-08 08:19:43 -04:00 committed by Justin Richer
parent 41e76fd6c9
commit 265624b285
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ public class TofuUserApprovalHandler implements UserApprovalHandler {
// If it's structured, assign the user-specified parameter
SystemScope systemScope = systemScopes.getByValue(scope);
if (systemScope.isStructured()){
if (systemScope != null && systemScope.isStructured()){
String paramValue = approvalParams.get("scopeparam_" + scope);
allowedScopes.add(scope + ":"+paramValue);
// .. and if it's unstructured, we're all set