Преглед изворни кода

fix null reference in IsPathOffline

Luke Pulverenti пре 11 година
родитељ
комит
204f7f6879
1 измењених фајлова са 1 додато и 1 уклоњено
  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;