gitextensions / gitextensions

Git Extensions is a standalone UI tool for managing git repositories. It also integrates with Windows Explorer and Microsoft Visual Studio (2015/2017/2019).
https://gitextensions.github.io/
Other
7.76k stars 2.08k forks source link

[NBug] Value must not be null. #10666

Closed binxer closed 1 year ago

binxer commented 1 year ago

Environment

Issue description

System.Exception: Value must not be null.
   at Microsoft.Validates.Fail(String message)
   at GitUI.CommandsDialogs.RevisionFileTreeControl.FileTreeContextMenu_Opening(Object sender, CancelEventArgs e)
   at System.Windows.Forms.ToolStripDropDown.OnOpening(CancelEventArgs e)
   at System.Windows.Forms.ToolStripDropDown.SetVisibleCore(Boolean visible)
   at System.Windows.Forms.ContextMenuStrip.SetVisibleCore(Boolean visible)
   at System.Windows.Forms.ToolStripDropDown.Show(Control control, Point position)
   at System.Windows.Forms.Control.WmContextMenu(Message& m, Control sourceControl)
   at System.Windows.Forms.Control.WmContextMenu(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.TreeView.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

I have created a new repository, then go to TreeView Tab with no files in the new repository. Right mouse click - Error appears.

Steps to reproduce

create a new repository, open TreeView immediately, when repository is still empty

Did this work in previous version of GitExtensions?

No response

Diagnostics

No response

duplicates-detector-bot[bot] commented 1 year ago

Potential duplicates:

duplicates-detector-bot[bot] commented 1 year ago

Potential duplicates: