Prevent a crash if there are no views added to the Toplevel

This commit is contained in:
miguel
2018-09-28 22:40:37 -04:00
parent 7c1bfd5e8a
commit 00c11ad70b

View File

@@ -907,7 +907,7 @@ namespace Terminal.Gui {
public void FocusFirst ()
{
if (subviews == null) {
SuperView.SetFocus (this);
SuperView?.SetFocus (this);
return;
}