add people null check

This commit is contained in:
Luke Pulverenti 2016-02-06 15:31:10 -05:00
parent 4982a90e22
commit c135bb17f2

View File

@ -165,11 +165,14 @@ namespace MediaBrowser.Server.Implementations.Library.Validators
var item = _libraryManager.GetItemById(id);
await _libraryManager.DeleteItem(item, new DeleteOptions
if (item != null)
{
DeleteFileLocation = false
await _libraryManager.DeleteItem(item, new DeleteOptions
{
DeleteFileLocation = false
}).ConfigureAwait(false);
}).ConfigureAwait(false);
}
}
progress.Report(100);