diff options
author | Jose Medrano <josmed@microsoft.com> | 2022-02-16 20:08:02 +0300 |
---|---|---|
committer | vs-mobiletools-engineering-service2 <valco@microsoft.com> | 2022-03-01 18:01:15 +0300 |
commit | 54f1bc4e7e4f20263df70e86ebf6c1ea5fd603a9 (patch) | |
tree | 60f030f44a309dfbccab96e6372252016ca88e7c | |
parent | 32e42632f42dba9fb38f326dcc4e14ca19f9568b (diff) |
Fixes NRE if get row view is not ready to get the view and focus
-rw-r--r-- | Xamarin.PropertyEditing.Mac/PropertyList.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Xamarin.PropertyEditing.Mac/PropertyList.cs b/Xamarin.PropertyEditing.Mac/PropertyList.cs index 8e242a1..027b21f 100644 --- a/Xamarin.PropertyEditing.Mac/PropertyList.cs +++ b/Xamarin.PropertyEditing.Mac/PropertyList.cs @@ -129,7 +129,9 @@ namespace Xamarin.PropertyEditing.Mac SelectRow (0, false); this.tabbedIn = true; var row = GetRowView ((nint)SelectedRows.FirstIndex, false); - return Window.MakeFirstResponder (row.NextValidKeyView); + if (row != null) { + return Window.MakeFirstResponder (row.NextValidKeyView); + } } } this.tabbedIn = false; |