Browse Source

Avoid NRE when MotherTextEditorControl is null

Unblocks @mstv on gitextensions/gitextensions#5957
pull/8/head
Drew Noakes 7 years ago
committed by GitHub
parent
commit
97d20e82ce
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Project/Src/Gui/TextArea.cs

2
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)
{

Loading…
Cancel
Save