1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-08 17:45:02 +08:00

Merge pull request #33898 from frenzibyte/fix-potential-nre

Fix potential null reference in `RoomNameLine`
This commit is contained in:
Dean Herbert
2025-06-27 14:08:49 +09:00
committed by GitHub
Unverified
@@ -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;