From 7d1a9dcc61533d60505f2b6363cdf329181fb535 Mon Sep 17 00:00:00 2001 From: JPVenson Date: Sun, 19 Jan 2025 13:30:31 +0100 Subject: [PATCH] Update Jellyfin.Server.Implementations/Item/BaseItemRepository.cs Co-authored-by: Bond-009 --- Jellyfin.Server.Implementations/Item/BaseItemRepository.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs index 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 /// 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();