From 0b1faa3466a3b1dc8cdac17fc85b62b18b69b8cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Skogstad?= Date: Thu, 26 Sep 2024 09:35:22 +0200 Subject: [PATCH] check fer nul --- .../Common/Authorization/AuthorizationOptionsSetup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Digdir.Domain.Dialogporten.GraphQL/Common/Authorization/AuthorizationOptionsSetup.cs b/src/Digdir.Domain.Dialogporten.GraphQL/Common/Authorization/AuthorizationOptionsSetup.cs index e0aaad692..8785bd5c4 100644 --- a/src/Digdir.Domain.Dialogporten.GraphQL/Common/Authorization/AuthorizationOptionsSetup.cs +++ b/src/Digdir.Domain.Dialogporten.GraphQL/Common/Authorization/AuthorizationOptionsSetup.cs @@ -13,7 +13,7 @@ internal sealed class AuthorizationOptionsSetup : IConfigureOptions options) { - _options = options.Value ?? throw new ArgumentNullException(nameof(options)); + _options = options?.Value ?? throw new ArgumentNullException(nameof(options)); } public void Configure(AuthorizationOptions options)