mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-21 16:25:28 +03:00
Throw ArgumentException instead of ArgumentNullException on empty Guid.
This commit is contained in:
@@ -6193,7 +6193,7 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type
|
|||||||
CheckDisposed();
|
CheckDisposed();
|
||||||
if (id == Guid.Empty)
|
if (id == Guid.Empty)
|
||||||
{
|
{
|
||||||
throw new ArgumentNullException(nameof(id));
|
throw new ArgumentException(nameof(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (attachments == null)
|
if (attachments == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user