1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Fix test not working due to null refs

This commit is contained in:
Dean Herbert 2017-10-30 20:55:23 +09:00
parent 1ae0eff6ad
commit d871c3fdda
2 changed files with 5 additions and 3 deletions

View File

@ -72,7 +72,7 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
};
}
[BackgroundDependencyLoader]
[BackgroundDependencyLoader(true)]
private void load(OsuColour colour, LocalisationEngine locale, BeatmapSetOverlay beatmapSetOverlay)
{
Stats.Add(new OsuSpriteText
@ -91,7 +91,7 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
AutoSizeAxes = Axes.Both,
Action = () =>
{
if (Score.Beatmap.OnlineBeatmapSetID.HasValue) beatmapSetOverlay.ShowBeatmapSet(Score.Beatmap.OnlineBeatmapSetID.Value);
if (Score.Beatmap.OnlineBeatmapSetID.HasValue) beatmapSetOverlay?.ShowBeatmapSet(Score.Beatmap.OnlineBeatmapSetID.Value);
},
Child = new FillFlowContainer
{

View File

@ -102,7 +102,9 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
scoreContainer.Clear();
showMoreButton.Hide();
missing.Show();
showMore();
if (newUser != null)
showMore();
}
private void showMore()