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
Describe the bug
In the file ParallelMonteCarloSimulation.cs 'listOfMeans.FirstOrDefault()' is null on at least one execution path. There are 24 instances of this bug identified by SonarCloud in this file.
I looked at the code because with SonarLint, I can see this issue in Visual Studio but I cannot figure out how to fix it. Maybe we should look at this together when we have some time.
Describe the bug
In the file ParallelMonteCarloSimulation.cs 'listOfMeans.FirstOrDefault()' is null on at least one execution path. There are 24 instances of this bug identified by SonarCloud in this file.
Application (VTS code):
To Reproduce
The link to the issues is here:
https://sonarcloud.io/project/issues?resolved=false&types=BUG&id=VirtualPhotonics_VTS&open=AYmYDtRnMpwhnU9-85fg
Expected behavior
Avoid the code throwing a NullReferenceException unexpectedly.
Additional context
The resolution and why this is an issue is detailed on SonarCloud at the link above.
The text was updated successfully, but these errors were encountered: