a fix for a NullPointerException whenever a client requests a client scope to be granted.
parent
41e76fd6c9
commit
265624b285
|
@ -208,7 +208,7 @@ public class TofuUserApprovalHandler implements UserApprovalHandler {
|
||||||
|
|
||||||
// If it's structured, assign the user-specified parameter
|
// If it's structured, assign the user-specified parameter
|
||||||
SystemScope systemScope = systemScopes.getByValue(scope);
|
SystemScope systemScope = systemScopes.getByValue(scope);
|
||||||
if (systemScope.isStructured()){
|
if (systemScope != null && systemScope.isStructured()){
|
||||||
String paramValue = approvalParams.get("scopeparam_" + scope);
|
String paramValue = approvalParams.get("scopeparam_" + scope);
|
||||||
allowedScopes.add(scope + ":"+paramValue);
|
allowedScopes.add(scope + ":"+paramValue);
|
||||||
// .. and if it's unstructured, we're all set
|
// .. and if it's unstructured, we're all set
|
||||||
|
|
Loading…
Reference in New Issue