mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 05:05:00 +00:00
fix: crash when de-select commit using Ctrl
This commit is contained in:
parent
376f775078
commit
8c8e09aa67
2 changed files with 5 additions and 2 deletions
|
@ -59,7 +59,7 @@ namespace SourceGit.Views
|
|||
disposable.Dispose();
|
||||
|
||||
var vm = DataContext as ViewModels.CommitDetail;
|
||||
if (vm == null)
|
||||
if (vm == null || vm.Commit == null)
|
||||
{
|
||||
Content = null;
|
||||
GC.Collect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue