The Free Software Media System - Server Backend & API
Update Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
JPVenson7d1a9dcc6153
diff --git a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs b/Jellyfin.Server.Implementations/Item/BaseItemRepository.csindex a4e3f75ec2..8bb58f7c65 100644--- a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs+++ b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs@@ -94,7 +94,10 @@ public sealed class BaseItemRepository/// <inheritdoc />public void DeleteItem(Guid id){- ArgumentNullException.ThrowIfNull(id.IsEmpty() ? null : id);+ if (id.IsEmpty())+ {+ throw new ArgumentException("Guid can't be empty", nameof(id));+ }using var context = _dbProvider.CreateDbContext();using var transaction = context.Database.BeginTransaction();