We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05744ed commit 3ef03d9Copy full SHA for 3ef03d9
src/SharpIDE.Application/Features/Analysis/RoslynAnalysis.cs
@@ -1019,6 +1019,7 @@ private static Project GetProjectForSharpIdeFile(SharpIdeFile sharpIdeFile)
1019
1020
private static Project GetProjectForSharpIdeProjectModel(SharpIdeProjectModel projectModel)
1021
{
1022
+ Guard.Against.Null(projectModel);
1023
var projectsForProjectPath = _workspace!.CurrentSolution.Projects.Where(s => s.FilePath == projectModel.FilePath).ToList();
1024
if (projectsForProjectPath.Count is 0) throw new InvalidOperationException($"No project found in workspace for project path '{projectModel.FilePath}'");
1025
if (projectsForProjectPath.Count is 1)
0 commit comments