소스 검색

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;