diff options
author | Cody Russell <cody@jhu.edu> | 2018-07-19 20:40:13 +0300 |
---|---|---|
committer | Cody Russell <cody@jhu.edu> | 2018-07-19 20:41:18 +0300 |
commit | dbcaebb35901ccb4d7c35af197cfc41a2f14d815 (patch) | |
tree | 52ae7a21d1c917714715898fb74fa582759980d8 | |
parent | c6dc670e3c20e08cdeb72fd0f5fd0970b7529201 (diff) |
[Editor] Add null guard.
-rw-r--r-- | main/src/core/Mono.TextEditor.Shared/Mono.TextEditor/Actions/SelectionActions.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/Mono.TextEditor.Shared/Mono.TextEditor/Actions/SelectionActions.cs b/main/src/core/Mono.TextEditor.Shared/Mono.TextEditor/Actions/SelectionActions.cs index a6fae12ca1..08a3250cca 100644 --- a/main/src/core/Mono.TextEditor.Shared/Mono.TextEditor/Actions/SelectionActions.cs +++ b/main/src/core/Mono.TextEditor.Shared/Mono.TextEditor/Actions/SelectionActions.cs @@ -77,7 +77,7 @@ namespace Mono.TextEditor public static void Select (TextEditorData data, Action<TextEditorData> caretMoveAction) { - data.Parent.CommitPreedit (); + data?.Parent?.CommitPreedit (); using (var undoGroup = data.OpenUndoGroup ()) { PositionChangedHandler handler = new PositionChangedHandler (data); |