Any
function in List
raised "Null Reference" exception.
#112059
Labels
Any
function in List
raised "Null Reference" exception.
#112059
Description
Hi
I use xUnit for unit test.
I have "Async" method add item to
List
.To avoid repeating a key, I use the
Any
function in theList
.I rarely get a
Null Reference
exception when running tests.I can't reproduce this error every time, but I've seen it rarely.
Reproduction Steps
I can't reproduce this error every time, but I've seen it rarely.
Expected behavior
The list has data. Why should it give a no data error when executing linq?
Actual behavior
Run
Any
method correctly.Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
OS: Windows 22H2 (19042.4529).
.NET core:
Microsoft Visual Studio Community 2022 (64-bit) Version 17.12.4
The text was updated successfully, but these errors were encountered: