global: add null safety checks

This commit is contained in:
Abdullah Atta committed 2025-10-14 21:15:51 +05:00
1 parent be432dfd24
commit 6e35edb715
109 files changed
+452 -590

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ namespace Streetwriters.Identity
{
options.Limits.MaxRequestBodySize = long.MaxValue;
options.ListenAnyIP(Servers.IdentityServer.Port);
if (Servers.IdentityServer.IsSecure)
if (Servers.IdentityServer.IsSecure && Servers.IdentityServer.SSLCertificate != null)
{
options.ListenAnyIP(443, listenerOptions =>
{