fix null reference in IsPathOffline

This commit is contained in:
Luke Pulverenti 2013-10-10 12:55:19 -04:00
parent 15046e5703
commit 204f7f6879

View File

@ -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;