mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-08 10:44:23 -04:00
add startup null check
This commit is contained in:
parent
6c790b8e2f
commit
a23144726e
@ -152,7 +152,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||||||
{
|
{
|
||||||
var directory = Path.GetDirectoryName(FFMpegPath);
|
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,
|
await new FontConfigLoader(_httpClient, ConfigurationManager.ApplicationPaths, _logger, _zipClient,
|
||||||
FileSystem).DownloadFonts(directory).ConfigureAwait(false);
|
FileSystem).DownloadFonts(directory).ConfigureAwait(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user