瀏覽代碼

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;