Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/macdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MyDocument.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/MyDocument.cs b/MyDocument.cs
index e4fa4e6..b7e624d 100644
--- a/MyDocument.cs
+++ b/MyDocument.cs
@@ -389,7 +389,8 @@ namespace macdoc
tabSelector.SelectAt (2);
Search (contents);
// Unselect the search term in case user is typing slowly
- sender.CurrentEditor.SelectedRange = new NSRange (contents.Length, 0);
+ if (sender.CurrentEditor != null)
+ sender.CurrentEditor.SelectedRange = new NSRange (contents.Length, 0);
}
// Typing in the index panel