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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user