sourcegit-scm / sourcegit

Windows/macOS/Linux GUI client for GIT users
MIT License
1.14k stars 110 forks source link

Crash when double clicking on empty area in commit details #192

Closed gadfly3173 closed 3 months ago

gadfly3173 commented 3 months ago

image

Crash: Object reference not set to an instance of an object.

----------------------------
Version: 8.17.0.0
OS: Unix 5.15.77.64
Framework: .NETCoreApp,Version=v8.0
Source: SourceGit
---------------------------

   at SourceGit.Models.DiffOption..ctor(Commit commit, Change change) + 0xda
   at SourceGit.ViewModels.CommitDetail.set_SelectedChanges(List`1 value) + 0xdc
   at SourceGit.Views.CommitDetail.OnChangeListDoubleTapped(Object sender, TappedEventArgs e) + 0x13c
   at Avalonia.Interactivity.EventRoute.RaiseEventImpl(RoutedEventArgs) + 0x13b
   at Avalonia.Interactivity.EventRoute.RaiseEvent(Interactive, RoutedEventArgs) + 0xb6
   at Avalonia.Interactivity.Interactive.RaiseEvent(RoutedEventArgs) + 0x3d
   at Avalonia.Input.Gestures.PointerPressed(RoutedEventArgs ev) + 0x3d7
   at Avalonia.Reactive.LightweightObservableBase`1.PublishNext(T) + 0xb1
   at Avalonia.Interactivity.EventRoute.RaiseEvent(Interactive, RoutedEventArgs) + 0xc9
   at Avalonia.Interactivity.Interactive.RaiseEvent(RoutedEventArgs) + 0x3d
   at Avalonia.Input.MouseDevice.MouseDown(IMouseDevice, UInt64, IInputElement, Point, PointerPointProperties, KeyModifiers, IInputElement) + 0x2a8
   at Avalonia.Input.MouseDevice.ProcessRawEvent(RawPointerEventArgs) + 0x13e
   at Avalonia.Input.InputManager.ProcessInput(RawInputEventArgs) + 0x34
   at Avalonia.Controls.TopLevel.HandleInput(RawInputEventArgs e) + 0x88
   at Avalonia.X11.X11Window.DispatchInput(RawInputEventArgs args) + 0x71
   at Avalonia.RawEventGrouper.Dispatch(RawInputEventArgs ev) + 0x5d
   at Avalonia.X11.X11PlatformThreading.RunLoop(CancellationToken) + 0x284
   at Avalonia.Threading.DispatcherFrame.Run(IControlledDispatcherImpl) + 0xff
   at Avalonia.Threading.Dispatcher.PushFrame(DispatcherFrame) + 0xb7
   at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken) + 0x10c
   at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[]) + 0x50
   at SourceGit.App.Main(String[] args) + 0x37