From 057ada018337fc3dceec16a872a132831b7f8301 Mon Sep 17 00:00:00 2001 From: EVAST9919 Date: Sat, 11 Nov 2017 07:50:40 +0300 Subject: [PATCH] Fix nulls --- osu.Game/Overlays/BeatmapSet/Scores/ClickableUsername.cs | 2 +- osu.Game/Overlays/BeatmapSet/Scores/ScoresContainer.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Overlays/BeatmapSet/Scores/ClickableUsername.cs b/osu.Game/Overlays/BeatmapSet/Scores/ClickableUsername.cs index 0aa1fae12f..762e3f0105 100644 --- a/osu.Game/Overlays/BeatmapSet/Scores/ClickableUsername.cs +++ b/osu.Game/Overlays/BeatmapSet/Scores/ClickableUsername.cs @@ -49,7 +49,7 @@ public ClickableUsername() }; } - [BackgroundDependencyLoader] + [BackgroundDependencyLoader(true)] private void load(UserProfileOverlay profile) { this.profile = profile; diff --git a/osu.Game/Overlays/BeatmapSet/Scores/ScoresContainer.cs b/osu.Game/Overlays/BeatmapSet/Scores/ScoresContainer.cs index 0f25021cf5..164823f105 100644 --- a/osu.Game/Overlays/BeatmapSet/Scores/ScoresContainer.cs +++ b/osu.Game/Overlays/BeatmapSet/Scores/ScoresContainer.cs @@ -105,7 +105,7 @@ private void updateScores() { request?.Cancel(); - if (beatmap == null) + if (!beatmap?.OnlineBeatmapID.HasValue ?? false) { clearAllScores(); return;