The Free Software Media System - Server Backend & API
fix: add null check
Mikal Stordal7b17b5b48898
diff --git a/MediaBrowser.Controller/Providers/DirectoryService.cs b/MediaBrowser.Controller/Providers/DirectoryService.csindex 5ab1e27987..55f198ea21 100644--- a/MediaBrowser.Controller/Providers/DirectoryService.cs+++ b/MediaBrowser.Controller/Providers/DirectoryService.cs@@ -77,7 +77,7 @@ namespace MediaBrowser.Controller.Providersif (!_fileCache.TryGetValue(path, out var result)){var file = _fileSystem.GetFileSystemInfo(path);- if (file.Exists)+ if (file?.Exists ?? false){result = file;_fileCache.TryAdd(path, result);