aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/SqliteItemRepository.cs
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2019-11-05 07:48:32 -0500
committerAndrew Mahone <andrew.mahone@gmail.com>2019-11-05 07:48:32 -0500
commitbd4da93d1e871f7d58075b6780c4c1c30fc34fd7 (patch)
treef5203203ea20bdd52aae7e07de46e65387286075 /Emby.Server.Implementations/Data/SqliteItemRepository.cs
parent6ca252ba5c651e41ad8a18c5555f5b60d81f0952 (diff)
Throw ArgumentException instead of ArgumentNullException on empty Guid.
Diffstat (limited to 'Emby.Server.Implementations/Data/SqliteItemRepository.cs')
-rw-r--r--Emby.Server.Implementations/Data/SqliteItemRepository.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
index 7c0a58596..e7e93d0db 100644
--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs
+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
@@ -6193,7 +6193,7 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type
CheckDisposed();
if (id == Guid.Empty)
{
- throw new ArgumentNullException(nameof(id));
+ throw new ArgumentException(nameof(id));
}
if (attachments == null)