Use null-conditional operator in GetAuthorizationContextAsync call
This commit is contained in:
parent
0654a2966a
commit
90fe580e1f
@ -84,7 +84,7 @@ public class ConsentController : Controller
|
||||
var result = new ProcessConsentResult();
|
||||
|
||||
// validate return url is still valid
|
||||
var request = await _interaction.GetAuthorizationContextAsync(model.ReturnUrl);
|
||||
var request = await _interaction.GetAuthorizationContextAsync(model?.ReturnUrl);
|
||||
if (request == null) return result;
|
||||
|
||||
ConsentResponse grantedConsent = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user