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

Commit c373444

Browse files
authored
Merge branch 'master' into fixes/1149-comments-not-displaying
2 parents 2b73ec5 + 52152f6 commit c373444

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
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
{

src/GitHub.VisualStudio/UI/Views/Controls/RepositoryCloneControl.xaml.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,10 @@ public RepositoryGroupDescription(RepositoryCloneControl owner)
8888

8989
public override object GroupNameFromItem(object item, int level, System.Globalization.CultureInfo culture)
9090
{
91-
Guard.ArgumentNotNull(item, nameof(item));
9291
Guard.ArgumentNotNull(culture, nameof(culture));
9392

9493
var repo = item as IRemoteRepositoryModel;
95-
var name = repo.Owner;
94+
var name = repo?.Owner ?? string.Empty;
9695
RepositoryGroup group;
9796

9897
if (!owner.groups.TryGetValue(name, out group))

0 commit comments

Comments
 (0)