1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-06 01:33:50 +08:00

Fix potential null reference in RoomNameLine

This commit is contained in:
Salman Alshamrani
2025-06-27 03:52:09 +03:00
Unverified
parent ae3100af11
commit 3dbb1e15b6
@@ -569,8 +569,8 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
public partial class RoomNameLine : FillFlowContainer
{
private TruncatingSpriteText spriteText = null!;
private ExternalLinkButton linkButton = null!;
private readonly TruncatingSpriteText spriteText;
private readonly ExternalLinkButton linkButton;
public LocalisableString Text
{
@@ -590,8 +590,7 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
}
}
[BackgroundDependencyLoader]
private void load()
public RoomNameLine()
{
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;