From 582226c13366a801648e94b421f6a7cb0fe0141b Mon Sep 17 00:00:00 2001 From: PloughPuff Date: Fri, 18 Jan 2019 18:11:42 +0000 Subject: [PATCH] Cause exception if empty string used for config or log folders --- Jellyfin.Server/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs index 343ef0bc32..46a80b4926 100644 --- a/Jellyfin.Server/Program.cs +++ b/Jellyfin.Server/Program.cs @@ -185,7 +185,7 @@ namespace Jellyfin.Server } } - if (!string.IsNullOrEmpty(configDir)) + if (configDir != null) { Directory.CreateDirectory(configDir); } @@ -204,7 +204,7 @@ namespace Jellyfin.Server } } - if (!string.IsNullOrEmpty(logDir)) + if (logDir != null) { Directory.CreateDirectory(logDir); }