beatmap and line can not be null in OsuLegacyDecoder.cs

This commit is contained in:
Miterosan 2017-11-07 23:10:54 +01:00
parent cf296d4bb2
commit 0287d3d7a0

View File

@ -209,6 +209,11 @@ namespace osu.Game.Beatmaps.Formats
private void handleDifficulty(Beatmap beatmap, string line)
{
if (beatmap == null)
throw new ArgumentNullException(nameof(beatmap));
if (line == null)
throw new ArgumentNullException(nameof(line));
var pair = splitKeyVal(line, ':');
var difficulty = beatmap.BeatmapInfo.BaseDifficulty;