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:
parent
34083baa4d
commit
d27dced3af
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user