Skip to content

Commit 9ecf1dd

Browse files
committed
check if not null
1 parent 969b55c commit 9ecf1dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitAutoUpdateGUI/FormMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ private void selectAllToolStripMenuItem_Click(object sender, EventArgs e)
523523
{
524524
Control focusedControl = FindFocusedControl(new List<Control> { textBoxVSProjectPath, textBoxGitBashBinariesPath });
525525
TextBox control = focusedControl as TextBox;
526-
control?.SelectAll();
526+
if (control != null) control.SelectAll();
527527
}
528528

529529
private void CutToClipboard(TextBoxBase tb, string errorMessage = "nothing")

0 commit comments

Comments
 (0)