diff options
| author | JPVenson <ger-delta-07@hotmail.de> | 2025-01-19 13:30:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-19 13:30:31 +0100 |
| commit | 7d1a9dcc61533d60505f2b6363cdf329181fb535 (patch) | |
| tree | 83c6074561bae86de585d9b8678d2aeac2ebd42a /Jellyfin.Server.Implementations/Item/BaseItemRepository.cs | |
| parent | cd75df65213f2a4d8ae3f56773ae29a6ec3532a8 (diff) | |
Update Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
Co-authored-by: Bond-009 <bond.009@outlook.com>
Diffstat (limited to 'Jellyfin.Server.Implementations/Item/BaseItemRepository.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/Item/BaseItemRepository.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs index a4e3f75ec..8bb58f7c6 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(); |
