Skip to content

Commit a33bb66

Browse files
committed
fixed a null reference
1 parent d0a5dca commit a33bb66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Strathweb.Dilithium.AspNetCore/DilithiumConfigurationExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private static void ConfigureDilithiumTokenSupportInternal(JwtBearerOptions opti
5151
}
5252

5353
var serverUrl = tokenValidationParameters.ValidIssuer ??
54-
tokenValidationParameters.ValidIssuers.FirstOrDefault() ?? options.Authority;
54+
tokenValidationParameters.ValidIssuers?.FirstOrDefault() ?? options.Authority;
5555

5656
if (serverUrl == null)
5757
throw new Exception(

0 commit comments

Comments
 (0)