From 97d20e82ce35d53241bfd41a555f9355589b3f40 Mon Sep 17 00:00:00 2001 From: Drew Noakes Date: Thu, 20 Dec 2018 20:14:13 +0000 Subject: [PATCH] Avoid NRE when MotherTextEditorControl is null Unblocks @mstv on gitextensions/gitextensions#5957 --- Project/Src/Gui/TextArea.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project/Src/Gui/TextArea.cs b/Project/Src/Gui/TextArea.cs index efa9a41..327ab6a 100644 --- a/Project/Src/Gui/TextArea.cs +++ b/Project/Src/Gui/TextArea.cs @@ -802,7 +802,7 @@ namespace ICSharpCode.TextEditor return true; // if not (or the process was 'silent', use the standard edit actions - var action = MotherTextEditorControl.GetEditAction(keyData); + var action = MotherTextEditorControl?.GetEditAction(keyData); AutoClearSelection = true; if (action != null) {