Explorar o código

fix null reference in IsPathOffline

Luke Pulverenti %!s(int64=11) %!d(string=hai) anos
pai
achega
204f7f6879
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      MediaBrowser.Controller/Entities/Folder.cs

+ 1 - 1
MediaBrowser.Controller/Entities/Folder.cs

@@ -725,7 +725,7 @@ namespace MediaBrowser.Controller.Entities
 
                 foreach (var item in itemsRemoved)
                 {
-                    if (IsPathOffline(item.Path))
+                    if (!string.IsNullOrEmpty(item.Path) && IsPathOffline(item.Path))
                     {
                         item.IsOffline = true;