aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-02-06 15:31:10 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-02-06 15:31:10 -0500
commitc135bb17f2ab66b2b362d04f11596fec3b70c3ae (patch)
treeb4181f479c70a424cad898ea51f9142d23cf5530
parent4982a90e22c83379e9765ed88e9974222bc83501 (diff)
add people null check
-rw-r--r--MediaBrowser.Server.Implementations/Library/Validators/PeopleValidator.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/Validators/PeopleValidator.cs b/MediaBrowser.Server.Implementations/Library/Validators/PeopleValidator.cs
index 26cde925e..2161c1454 100644
--- a/MediaBrowser.Server.Implementations/Library/Validators/PeopleValidator.cs
+++ b/MediaBrowser.Server.Implementations/Library/Validators/PeopleValidator.cs
@@ -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);