[Modify] Add a null check

This commit is contained in:
sta 2022-01-27 21:07:29 +09:00
parent 843c789b8a
commit d6a98c3f63

View File

@ -40,6 +40,9 @@ namespace Example3
protected override void OnClose (CloseEventArgs e)
{
if (_name == null)
return;
var fmt = "{0} got logged off...";
var msg = String.Format (fmt, _name);