feat: Add null or empty check for AppUrl in SetAppUrl method

This commit is contained in:
Neil Dorin 2026-06-08 16:57:34 -06:00
parent a27f604660
commit 041bb5c50e

View file

@ -583,6 +583,12 @@ namespace PepperDash.Essentials.Touchpanel
/// </summary>
public void SetAppUrl(string url)
{
if (string.IsNullOrEmpty(url))
{
this.LogInformation("AppUrl is null or empty, skipping SetAppUrl");
return;
}
if(localConfig.DevelopmentServerAddress != null)
{
url = Regex.Replace(url, @"^http://[^/]+", $"http://{localConfig.DevelopmentServerAddress}");