mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 08:12:56 +08:00
Fix possible nullref
This commit is contained in:
parent
7688ea7057
commit
401d38fc05
@ -301,6 +301,9 @@ namespace osu.Game.Screens.Ranking
|
|||||||
|
|
||||||
protected override bool OnKeyDown(KeyDownEvent e)
|
protected override bool OnKeyDown(KeyDownEvent e)
|
||||||
{
|
{
|
||||||
|
if (expandedPanel == null)
|
||||||
|
return base.OnKeyDown(e);
|
||||||
|
|
||||||
var expandedPanelIndex = flow.GetPanelIndex(expandedPanel.Score);
|
var expandedPanelIndex = flow.GetPanelIndex(expandedPanel.Score);
|
||||||
|
|
||||||
switch (e.Key)
|
switch (e.Key)
|
||||||
|
Loading…
Reference in New Issue
Block a user