fix: crash on goto to SHA, NullReferenceException

This commit is contained in:
NilsPvR 2024-11-24 21:17:47 +01:00
parent 4160f8ab9c
commit f936da145a

View file

@ -195,7 +195,7 @@ namespace SourceGit.Views
open.Icon = App.CreateMenuIcon("Icons.Commit"); open.Icon = App.CreateMenuIcon("Icons.Commit");
open.Click += (_, ev) => open.Click += (_, ev) =>
{ {
detail.NavigateTo(_lastHover.Link); detail.NavigateTo(link);
ev.Handled = true; ev.Handled = true;
}; };