mirror of
https://github.com/ppy/osu.git
synced 2025-03-16 00:37:19 +08:00
beatmap and line can not be null in OsuLegacyDecoder.cs
This commit is contained in:
parent
2f47b336e2
commit
cf296d4bb2
@ -163,6 +163,11 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
|
|
||||||
private void handleMetadata(Beatmap beatmap, string line)
|
private void handleMetadata(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 pair = splitKeyVal(line, ':');
|
||||||
|
|
||||||
var metadata = beatmap.BeatmapInfo.Metadata;
|
var metadata = beatmap.BeatmapInfo.Metadata;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user