The Free Software Media System - Server Backend & API
add people null check
Luke Pulverentic135bb17f2ab
diff --git a/MediaBrowser.Server.Implementations/Library/Validators/PeopleValidator.cs b/MediaBrowser.Server.Implementations/Library/Validators/PeopleValidator.csindex 26cde925ed..2161c14547 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.Validatorsvar 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);