1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-21 14:59:59 +08:00

Add back more correct null checks

This commit is contained in:
Dean Herbert 2021-02-25 14:06:21 +09:00
parent 8a97e2e28d
commit a362382d38
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ namespace osu.Game.Graphics.UserInterface
{
public LocalisableString Text
{
get => SpriteText.Text;
get => SpriteText?.Text ?? default;
set
{
if (SpriteText != null)

View File

@ -24,7 +24,7 @@ namespace osu.Game.Screens.Select
public LocalisableString Text
{
get => SpriteText.Text;
get => SpriteText?.Text ?? default;
set
{
if (SpriteText != null)