Skip to content

Commit

Permalink
Fix NullReferenceException during debugging
Browse files Browse the repository at this point in the history
Add a TODO with an issue number dotnet#1204

(cherry picked from commit a3bf5b0)
  • Loading branch information
wschae committed Apr 3, 2015
1 parent bbd8c3d commit a377e75
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ private static ITextBuffer GetTextBuffer(Workspace workspace, DocumentId documen
var doc = workspace.CurrentSolution.GetDocument(documentId);
if (doc == null)
{
// TODO (https://github.com/dotnet/roslyn/issues/1204): this check should be unnecessary.
log.Write($"GetTextBuffer: document not found for '{documentId?.GetDebuggerDisplay()}'");
return null;
}
Expand Down

0 comments on commit a377e75

Please sign in to comment.