From 90fe580e1f8f30084491b03a9e62c9ff58d0b6d2 Mon Sep 17 00:00:00 2001 From: Sultan Soltanov Date: Thu, 23 Feb 2023 13:38:34 +0500 Subject: [PATCH] Use null-conditional operator in GetAuthorizationContextAsync call --- .../Identity.API/Quickstart/Consent/ConsentController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/Identity/Identity.API/Quickstart/Consent/ConsentController.cs b/src/Services/Identity/Identity.API/Quickstart/Consent/ConsentController.cs index 1255df44a..416a53baa 100644 --- a/src/Services/Identity/Identity.API/Quickstart/Consent/ConsentController.cs +++ b/src/Services/Identity/Identity.API/Quickstart/Consent/ConsentController.cs @@ -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;