Skip to content

Commit 4160f8a

Browse files
committed
fix: only set tooltip if commit exists
Signed-off-by: leo <[email protected]>
1 parent b2e01f0 commit 4160f8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Views/CommitMessagePresenter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ private void ProcessHoverCommitLink(Models.Hyperlink link)
299299
_inlineCommits.Add(sha, c);
300300

301301
// Make sure user still hovers the target SHA.
302-
if (_lastHover == link)
302+
if (_lastHover == link && c != null)
303303
{
304304
ToolTip.SetTip(this, c);
305305
ToolTip.SetIsOpen(this, true);

0 commit comments

Comments
 (0)