mirror of
https://github.com/osukey/osukey.git
synced 2025-05-18 20:17:23 +09:00
Add null check for safety
This commit is contained in:
parent
44947aa9ed
commit
dc8c7a5041
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user