mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 16:03:01 +08:00
Fix potential crash in DrawableRoom
due to lack of null check on post-lookup beatmap
This commit is contained in:
parent
779f7390b7
commit
2b74dbca28
@ -418,10 +418,16 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
|
||||
var retrievedBeatmap = task.GetResultSafely();
|
||||
|
||||
statusText.Text = "Currently playing ";
|
||||
|
||||
if (retrievedBeatmap != null)
|
||||
{
|
||||
beatmapText.AddLink(retrievedBeatmap.GetDisplayTitleRomanisable(),
|
||||
LinkAction.OpenBeatmap,
|
||||
retrievedBeatmap.OnlineID.ToString(),
|
||||
creationParameters: s => s.Truncate = true);
|
||||
}
|
||||
else
|
||||
beatmapText.AddText("unknown beatmap");
|
||||
}), cancellationSource.Token);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user