From a8efe6a9a98972dfa1dc1c2c58a7c7e5a51cf43a Mon Sep 17 00:00:00 2001 From: Tomas Matousek Date: Tue, 30 Jun 2015 16:18:41 -0700 Subject: [PATCH] Workaround for a crash in EditSession when project loads after debugging session has started --- src/Features/Core/EditAndContinue/EditSession.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Features/Core/EditAndContinue/EditSession.cs b/src/Features/Core/EditAndContinue/EditSession.cs index daa5f6ae38515..b87642f3ac6fb 100644 --- a/src/Features/Core/EditAndContinue/EditSession.cs +++ b/src/Features/Core/EditAndContinue/EditSession.cs @@ -254,6 +254,12 @@ public async Task GetProjectAnalysisSummaryAsync(Project { var baseProject = _baseSolution.GetProject(project.Id); + // TODO (https://github.com/dotnet/roslyn/issues/1204): + if (baseProject == null) + { + return ProjectAnalysisSummary.NoChanges; + } + var documentAnalyses = GetChangedDocumentsAnalyses(baseProject, project); if (documentAnalyses.Count == 0) {