From 041bb5c50ea30cd0b2578b5aca9e93f6afdaacdb Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Mon, 8 Jun 2026 16:57:34 -0600 Subject: [PATCH] feat: Add null or empty check for AppUrl in SetAppUrl method --- .../Touchpanel/MobileControlTouchpanelController.cs | 6 ++++++ 1 file changed, 6 insertions(+) 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}");