From c55d406b44365cffad15212fc485b94c211774cf Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 24 Apr 2017 19:25:35 +0900 Subject: [PATCH] Fix nullref possibility. --- osu.Game/Screens/Select/BeatmapDetails.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osu.Game/Screens/Select/BeatmapDetails.cs b/osu.Game/Screens/Select/BeatmapDetails.cs index c5fb5eafaa..b337e14702 100644 --- a/osu.Game/Screens/Select/BeatmapDetails.cs +++ b/osu.Game/Screens/Select/BeatmapDetails.cs @@ -60,6 +60,8 @@ namespace osu.Game.Screens.Select private void updateStats() { + if (beatmap == null) return; + description.Text = beatmap.Version; source.Text = beatmap.Metadata.Source; tags.Text = beatmap.Metadata.Tags;