Răsfoiți Sursa

Throw ArgumentException instead of ArgumentNullException on empty Guid.

Andrew Mahone 5 ani în urmă
părinte
comite
bd4da93d1e
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      Emby.Server.Implementations/Data/SqliteItemRepository.cs

+ 1 - 1
Emby.Server.Implementations/Data/SqliteItemRepository.cs

@@ -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)