Cause exception if empty string used for config or log folders

This commit is contained in:
PloughPuff 2019-01-18 18:11:42 +00:00
parent 529d804414
commit 582226c133

View File

@ -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);
}