mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fix: add null check
This commit is contained in:
parent
0cf8b376ac
commit
7b17b5b488
@ -77,7 +77,7 @@ namespace MediaBrowser.Controller.Providers
|
|||||||
if (!_fileCache.TryGetValue(path, out var result))
|
if (!_fileCache.TryGetValue(path, out var result))
|
||||||
{
|
{
|
||||||
var file = _fileSystem.GetFileSystemInfo(path);
|
var file = _fileSystem.GetFileSystemInfo(path);
|
||||||
if (file.Exists)
|
if (file?.Exists ?? false)
|
||||||
{
|
{
|
||||||
result = file;
|
result = file;
|
||||||
_fileCache.TryAdd(path, result);
|
_fileCache.TryAdd(path, result);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user