fix: add null check

pull/11204/head
Mikal Stordal 10 months ago
parent 0cf8b376ac
commit 7b17b5b488

@ -77,7 +77,7 @@ namespace MediaBrowser.Controller.Providers
if (!_fileCache.TryGetValue(path, out var result))
{
var file = _fileSystem.GetFileSystemInfo(path);
if (file.Exists)
if (file?.Exists ?? false)
{
result = file;
_fileCache.TryAdd(path, result);

Loading…
Cancel
Save