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

Commit 7af0101

Browse files
committed
Handle null inlineCommentThreads.
1 parent e0deaf9 commit 7af0101

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitHub.InlineReviews/Models/PullRequestSessionFile.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ public string CommitSha
5959
public IReadOnlyList<IInlineCommentThreadModel> InlineCommentThreads
6060
{
6161
get { return inlineCommentThreads; }
62-
internal set
62+
set
6363
{
64-
var lines = inlineCommentThreads?
64+
var lines = (inlineCommentThreads ?? Enumerable.Empty<IInlineCommentThreadModel>())?
6565
.Concat(value ?? Enumerable.Empty<IInlineCommentThreadModel>())
6666
.Select(x => x.LineNumber)
6767
.Where(x => x >= 0)

0 commit comments

Comments
 (0)