From 74b4bd620dcef9a61cc6332ad094e891e440497c Mon Sep 17 00:00:00 2001 From: goyuken Date: Fri, 17 Oct 2014 00:28:21 +0000 Subject: [PATCH] fix issue 290 --- BizHawk.Client.EmuHawk/MainForm.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/MainForm.cs b/BizHawk.Client.EmuHawk/MainForm.cs index 8824785c71..1f8de6d771 100644 --- a/BizHawk.Client.EmuHawk/MainForm.cs +++ b/BizHawk.Client.EmuHawk/MainForm.cs @@ -1258,7 +1258,15 @@ namespace BizHawk.Client.EmuHawk private void SetWindowText() { string str = ""; - + + if (Global.Emulator == null) + { + // in some weird cirumstances, this can get called too early before any emulator exists + // just ignore it + Text = "BizHawk"; + return; + } + if (_inResizeLoop) { var size = GlobalWin.PresentationPanel.NativeSize;