From c77bf8bd96c5c1afeca5c44359f192c920d140ba Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 30 Oct 2022 16:23:59 +0100 Subject: [PATCH] Added not null operators --- I18N Commander/UI WinForms/Components/Setting.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/I18N Commander/UI WinForms/Components/Setting.cs b/I18N Commander/UI WinForms/Components/Setting.cs index c73f7a0..0d248b0 100644 --- a/I18N Commander/UI WinForms/Components/Setting.cs +++ b/I18N Commander/UI WinForms/Components/Setting.cs @@ -212,7 +212,7 @@ public sealed partial class Setting : UserControl }; // Update the explanation text. Therefore, we need to get the setting object through the chain of parents: - var setting = (Setting) ((Control) sender).Parent.Parent.Parent; + var setting = (Setting) (((Control) sender!)!).Parent.Parent.Parent; setting.UpdateExplanation(); };