소스 검색

Add missing null check to StartWith.

Bart De Smet 6 년 전
부모
커밋
48017129aa
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/StartWith.cs

+ 2 - 0
Ix.NET/Source/System.Interactive.Async/System/Linq/Operators/StartWith.cs

@@ -12,6 +12,8 @@ namespace System.Linq
         {
             if (source == null)
                 throw Error.ArgumentNull(nameof(source));
+            if (values == null)
+                throw Error.ArgumentNull(nameof(values));
 
             return values.ToAsyncEnumerable().Concat(source);
         }