1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 09:42:54 +08:00

Remove unused using and fix possible nullref.

This commit is contained in:
naoey 2018-04-04 22:02:45 +05:30
parent 7482d5986a
commit ca4299c6fe
No known key found for this signature in database
GPG Key ID: 3908EC682A3E19C7
2 changed files with 1 additions and 2 deletions

View File

@ -72,7 +72,7 @@ namespace osu.Game.Graphics.Containers
{
case LinkAction.OpenBeatmap:
// TODO: proper query params handling
if (int.TryParse(linkArgument.Contains('?') ? linkArgument.Split('?')[0] : linkArgument, out int beatmapId))
if (linkArgument != null && int.TryParse(linkArgument.Contains('?') ? linkArgument.Split('?')[0] : linkArgument, out int beatmapId))
game?.ShowBeatmap(beatmapId);
break;
case LinkAction.OpenBeatmapSet:

View File

@ -18,7 +18,6 @@ using osu.Game.Overlays.BeatmapSet;
using osu.Game.Rulesets;
using osu.Game.Overlays.BeatmapSet.Scores;
using System.Linq;
using osu.Framework.Configuration;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Overlays