diff options
Diffstat (limited to 'Xwt.Gtk')
-rw-r--r-- | Xwt.Gtk/Xwt.GtkBackend/ComboBoxEntryBackend.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend/ComboBoxEntryBackend.cs b/Xwt.Gtk/Xwt.GtkBackend/ComboBoxEntryBackend.cs index 98228a7e..7788c2e7 100644 --- a/Xwt.Gtk/Xwt.GtkBackend/ComboBoxEntryBackend.cs +++ b/Xwt.Gtk/Xwt.GtkBackend/ComboBoxEntryBackend.cs @@ -38,7 +38,7 @@ namespace Xwt.GtkBackend { get { - if (Widget?.Model == null) + if (Widget.Model == null) return completes; return entryBackend.TextEntry?.Completion?.Model == Widget.Model; } @@ -120,6 +120,8 @@ namespace Xwt.GtkBackend { public CustomComboEntryBackend (Gtk.Entry entry) { + if (entry == null) + throw new ArgumentNullException(nameof(entry)); Widget = entry; } @@ -129,4 +131,3 @@ namespace Xwt.GtkBackend } } } - |