From 097ab66182b79d2bb8ec51534e2d792f622207b4 Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Sun, 25 Mar 2018 01:54:25 +0900 Subject: [PATCH] Fix resharper error --- osu.Game/Screens/Select/BeatmapInfoWedge.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osu.Game/Screens/Select/BeatmapInfoWedge.cs b/osu.Game/Screens/Select/BeatmapInfoWedge.cs index 5cde0d2751..8e045b9fb7 100644 --- a/osu.Game/Screens/Select/BeatmapInfoWedge.cs +++ b/osu.Game/Screens/Select/BeatmapInfoWedge.cs @@ -254,7 +254,7 @@ namespace osu.Game.Screens.Select private OsuSpriteText[] getMapper(BeatmapMetadata metadata) { - if (metadata.Author == null || string.IsNullOrEmpty(metadata.Author.Username)) + if (string.IsNullOrEmpty(metadata.Author?.Username)) return Array.Empty(); return new[] @@ -268,6 +268,7 @@ namespace osu.Game.Screens.Select new OsuSpriteText { Font = @"Exo2.0-Bold", + // ReSharper disable once PossibleNullReferenceException (resharper broken?) Text = metadata.Author.Username, TextSize = 15, }