fix NRE of Trace Logger close, if the Trace Logger was not used before closing

This commit is contained in:
adelikat 2020-07-19 13:56:27 -05:00
parent ddbeabf198
commit f7f6839e6c
1 changed files with 5 additions and 1 deletions

View File

@ -70,7 +70,11 @@ namespace BizHawk.Client.EmuHawk
Closing += (o, e) =>
{
SaveConfigSettings();
Tracer.Sink = null;
if (Tracer != null)
{
Tracer.Sink = null;
}
CloseFile();
};