Browse Source

Cause exception if empty string used for config or log folders

PloughPuff 6 years ago
parent
commit
582226c133
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Jellyfin.Server/Program.cs

+ 2 - 2
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);
             }