You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stream fails when list contains fewer items than initialCount #8714
Here, the result of MoveNextAsync is not tested before calling list.Add(enumerator.Current), and because of this null (or, more correctly the default value) is placed in the list. When this is later read, it causes a NullReferenceException to be thrown.
Activity
MikeBarker-MSFT commentedon Sep 16, 2025
I believe the issue is caused by these lines in
ResolverTask.Execute.csHere, the result of
MoveNextAsyncis not tested before callinglist.Add(enumerator.Current), and because of thisnull(or, more correctly the default value) is placed in thelist. When this is later read, it causes aNullReferenceExceptionto be thrown.MikeBarker-MSFT commentedon Sep 16, 2025
I am going to pop up a PR with a proposed changeset.
Fix #8714: @stream fails when list contains fewer items than initialC…
Fix ChilliCream#8714: @stream fails when list contains fewer items th…