Add null check for safety

This commit is contained in:
Dean Herbert 2019-09-13 15:27:42 +09:00
parent 44947aa9ed
commit dc8c7a5041

View File

@ -80,7 +80,7 @@ namespace osu.Game.Overlays
switch (action) switch (action)
{ {
case GlobalAction.Select: case GlobalAction.Select:
currentDialog.Buttons.OfType<PopupDialogOkButton>().FirstOrDefault()?.Click(); currentDialog?.Buttons.OfType<PopupDialogOkButton>().FirstOrDefault()?.Click();
return true; return true;
} }