[BUG] Fix NullReferenceException Dgv_MouseDown (#288), version 1.2.1.1

This commit is contained in:
Markus Hofknecht 2022-01-09 11:51:21 +01:00
parent 0511468757
commit 5533a2d749
2 changed files with 3 additions and 3 deletions

View file

@ -1081,7 +1081,7 @@ namespace SystemTrayMenu.Business
}
Menu menu = (Menu)((DataGridView)sender).FindForm();
if (menu.ScrollbarVisible)
if (menu != null && menu.ScrollbarVisible)
{
isDraggingSwipeScrolling = true;
dragSwipeScrollingStartRowIndex = GetRowUnderCursor(dgv, e.Location);

View file

@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.1.0")]
[assembly: AssemblyFileVersion("1.2.1.0")]
[assembly: AssemblyVersion("1.2.1.1")]
[assembly: AssemblyFileVersion("1.2.1.1")]