1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 20:37:19 +08:00

Fix crash due to being too forgiving of nulls

This one is super duper annoying to test, because we already have e.g.
`TestScenePlaylistsScreen`. The only way to test it would be to use an
`OsuGameTestScene`.

Maybe this is okay?
This commit is contained in:
Dan Balasescu 2024-11-21 20:52:34 +09:00
parent dc45816566
commit cc59434ea4
No known key found for this signature in database

View File

@ -33,8 +33,8 @@ namespace osu.Game.Screens.OnlinePlay
protected LoungeSubScreen Lounge { get; private set; } = null!;
private readonly ScreenStack screenStack = new OnlinePlaySubScreenStack { RelativeSizeAxes = Axes.Both };
private OnlinePlayScreenWaveContainer waves = null!;
private ScreenStack screenStack = null!;
[Cached(Type = typeof(IRoomManager))]
protected RoomManager RoomManager { get; private set; }
@ -65,7 +65,7 @@ namespace osu.Game.Screens.OnlinePlay
RelativeSizeAxes = Axes.Both,
Children = new Drawable[]
{
screenStack = new OnlinePlaySubScreenStack { RelativeSizeAxes = Axes.Both },
screenStack,
new Header(ScreenTitle, screenStack),
RoomManager,
ongoingOperationTracker,