aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ApplicationHost.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2024-11-12 17:23:41 +0000
committerJPVenson <github@jpb.email>2024-11-12 17:23:41 +0000
commit22515ad6476a64e41f5d1e031a72d00c2c03ca7f (patch)
tree7a25be60d95ea4e45a5a290a2964e4ae035c6ea8 /Emby.Server.Implementations/ApplicationHost.cs
parentd3174b51710d1ed988ad38435d112a3d3739d9b4 (diff)
Fixed app paths not being expanded
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index fbec4726f..372634340 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -268,6 +268,11 @@ namespace Emby.Server.Implementations
public string ExpandVirtualPath(string path)
{
+ if (path is null)
+ {
+ return null;
+ }
+
var appPaths = ApplicationPaths;
return path.Replace(appPaths.VirtualDataPath, appPaths.DataPath, StringComparison.OrdinalIgnoreCase)