Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 3e463eb

Browse files
committed
Add a null check for session.
I don't understand how `session` can be null at this point without `file` also being null, however #1124 says this is happening, so put an extra null check for `session` in here. Fixes #1124.
1 parent ffe9738 commit 3e463eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.InlineReviews/Tags/InlineCommentTagger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public IEnumerable<ITagSpan<InlineCommentTag>> GetTags(NormalizedSnapshotSpanCol
102102
// Sucessful initialization will call NotifyTagsChanged, causing this method to be re-called.
103103
Initialize();
104104
}
105-
else if (file != null)
105+
else if (file != null && session != null)
106106
{
107107
foreach (var span in spans)
108108
{

0 commit comments

Comments
 (0)