From 9c6c52fbbb5ca7b7ff31e342ca1302a13d62040e Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Tue, 15 Jul 2025 13:29:40 +0200 Subject: [PATCH] Fixed a null error --- Duplicati/Library/Utility/Uri.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Duplicati/Library/Utility/Uri.cs b/Duplicati/Library/Utility/Uri.cs index 7bd248d44..819c561e9 100644 --- a/Duplicati/Library/Utility/Uri.cs +++ b/Duplicati/Library/Utility/Uri.cs @@ -200,7 +200,7 @@ namespace Duplicati.Library.Utility } // Support correctly encoded file:///C:\test - if (h.Length == 0 && Scheme == "file" && WINDOWS_PATH.IsMatch(p) && p.StartsWith("/", StringComparison.Ordinal)) + if ((h == null || h.Length == 0) && Scheme == "file" && WINDOWS_PATH.IsMatch(p) && p.StartsWith("/", StringComparison.Ordinal)) p = p.Substring(1); this.Host = h;