1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 23:12:56 +08:00

beatmap and line can not be null in OsuLegacyDecoder.cs

This commit is contained in:
Miterosan 2017-11-07 23:11:16 +01:00
parent 34083baa4d
commit d27dced3af

View File

@ -494,6 +494,11 @@ namespace osu.Game.Beatmaps.Formats
private void handleTimingPoints(Beatmap beatmap, string line)
{
if (beatmap == null)
throw new ArgumentNullException(nameof(beatmap));
if (line == null)
throw new ArgumentNullException(nameof(line));
string[] split = line.Split(',');
double time = double.Parse(split[0].Trim(), NumberFormatInfo.InvariantInfo);