Cause exception if empty string used for config or log folders

pull/702/head
PloughPuff 6 years ago
parent 529d804414
commit 582226c133

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

Loading…
Cancel
Save