add startup null check

This commit is contained in:
Luke Pulverenti 2016-07-08 00:00:37 -04:00
parent 7b58f3a89a
commit 121bff54d9

View File

@ -152,7 +152,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
{
var directory = Path.GetDirectoryName(FFMpegPath);
if (FileSystem.ContainsSubPath(ConfigurationManager.ApplicationPaths.ProgramDataPath, directory))
if (!string.IsNullOrWhiteSpace(directory) && FileSystem.ContainsSubPath(ConfigurationManager.ApplicationPaths.ProgramDataPath, directory))
{
await new FontConfigLoader(_httpClient, ConfigurationManager.ApplicationPaths, _logger, _zipClient,
FileSystem).DownloadFonts(directory).ConfigureAwait(false);