mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-21 12:06:59 +01:00
Fix null reference exceptions
This commit is contained in:
@@ -28,7 +28,7 @@ namespace Tgstation.Server.Host.Security.OAuth
|
||||
public abstract OAuthProvider Provider { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public OAuthGatewayStatus GatewayStatus => OAuthConfiguration.Gateway!.Value;
|
||||
public OAuthGatewayStatus GatewayStatus => OAuthConfiguration.Gateway ?? OAuthGatewayStatus.Disabled;
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="ILogger"/> for the <see cref="GenericOAuthValidator"/>.
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Tgstation.Server.Host.Security.OAuth
|
||||
public OAuthProvider Provider => OAuthProvider.GitHub;
|
||||
|
||||
/// <inheritdoc />
|
||||
public OAuthGatewayStatus GatewayStatus => oAuthConfiguration.Gateway!.Value;
|
||||
public OAuthGatewayStatus GatewayStatus => oAuthConfiguration.Gateway ?? OAuthGatewayStatus.Disabled;
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="IGitHubServiceFactory"/> for the <see cref="GitHubOAuthValidator"/>.
|
||||
|
||||
Reference in New Issue
Block a user