fix: only set tooltip if commit exists
Some checks are pending
Continuous Integration / Build (push) Waiting to run
Continuous Integration / Prepare version string (push) Waiting to run
Continuous Integration / Package (push) Blocked by required conditions
Localization Check / localization-check (push) Waiting to run

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2024-11-24 21:43:31 +08:00
parent b2e01f0d3e
commit 4160f8ab9c
No known key found for this signature in database

View file

@ -299,7 +299,7 @@ namespace SourceGit.Views
_inlineCommits.Add(sha, c);
// Make sure user still hovers the target SHA.
if (_lastHover == link)
if (_lastHover == link && c != null)
{
ToolTip.SetTip(this, c);
ToolTip.SetIsOpen(this, true);