1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 16:27:26 +08:00

Fix possible nullref

This commit is contained in:
smoogipoo 2021-09-06 19:07:28 +09:00
parent 7688ea7057
commit 401d38fc05

View File

@ -301,6 +301,9 @@ namespace osu.Game.Screens.Ranking
protected override bool OnKeyDown(KeyDownEvent e)
{
if (expandedPanel == null)
return base.OnKeyDown(e);
var expandedPanelIndex = flow.GetPanelIndex(expandedPanel.Score);
switch (e.Key)