diff --git a/src/PepperDash.Essentials.MobileControl/Touchpanel/MobileControlTouchpanelController.cs b/src/PepperDash.Essentials.MobileControl/Touchpanel/MobileControlTouchpanelController.cs index a8100e80..55d298d6 100644 --- a/src/PepperDash.Essentials.MobileControl/Touchpanel/MobileControlTouchpanelController.cs +++ b/src/PepperDash.Essentials.MobileControl/Touchpanel/MobileControlTouchpanelController.cs @@ -583,6 +583,12 @@ namespace PepperDash.Essentials.Touchpanel /// 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}");