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

Commit 52152f6

Browse files
authored
Merge pull request #1179 from github/fixes/1124-nre-inlinecommenttagger
Add additional null check in InlineCommentTagger.GetTags.
2 parents 5c881b0 + 7e5a0d4 commit 52152f6

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
@@ -100,7 +100,7 @@ public IEnumerable<ITagSpan<InlineCommentTag>> GetTags(NormalizedSnapshotSpanCol
100100
// Sucessful initialization will call NotifyTagsChanged, causing this method to be re-called.
101101
Initialize();
102102
}
103-
else if (file != null)
103+
else if (file != null && session != null)
104104
{
105105
foreach (var span in spans)
106106
{

0 commit comments

Comments
 (0)