Fixing check for external services that don't specify server

This commit is contained in:
rockstardev
2019-11-07 23:36:55 -06:00
parent 9c165d84ef
commit c24bb443d3
2 changed files with 3 additions and 4 deletions

View File

@@ -144,7 +144,7 @@ namespace BTCPayServer.Configuration
}
public bool? IsOnion()
{
if (!this.Server.IsAbsoluteUri)
if (this.Server == null || !this.Server.IsAbsoluteUri)
return null;
return this.Server.DnsSafeHost.EndsWith(".onion", StringComparison.OrdinalIgnoreCase);
}