diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs index 0465cb5c3..3e6370868 100644 --- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs +++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs @@ -537,13 +537,16 @@ namespace MediaBrowser.Server.Implementations.Library { try { - var item = ResolvePath(f, parent) as T; - - if (item != null) + if (f.Exists) { - lock (list) + var item = ResolvePath(f, parent) as T; + + if (item != null) { - list.Add(item); + lock (list) + { + list.Add(item); + } } } }