소스 검색

Throw ArgumentException instead of ArgumentNullException on empty Guid.

Andrew Mahone 5 년 전
부모
커밋
bd4da93d1e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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();
             if (id == Guid.Empty)
             {
-                throw new ArgumentNullException(nameof(id));
+                throw new ArgumentException(nameof(id));
             }
 
             if (attachments == null)