From 5533a2d7499c4181d40d546fe34244a582a39bd2 Mon Sep 17 00:00:00 2001 From: Markus Hofknecht Date: Sun, 9 Jan 2022 11:51:21 +0100 Subject: [PATCH] [BUG] Fix NullReferenceException Dgv_MouseDown (#288), version 1.2.1.1 --- Business/Menus.cs | 2 +- Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Business/Menus.cs b/Business/Menus.cs index 2b24424..285c25e 100644 --- a/Business/Menus.cs +++ b/Business/Menus.cs @@ -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); diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 2d08ada..0189e97 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -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")]