diff --git a/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/KaraokeJsonBeatmapDecoder.cs b/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/KaraokeJsonBeatmapDecoder.cs index 4a00678b3..99991f8a7 100644 --- a/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/KaraokeJsonBeatmapDecoder.cs +++ b/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/KaraokeJsonBeatmapDecoder.cs @@ -42,7 +42,7 @@ protected override void ParseStreamInto(LineBufferedReader stream, Beatmap outpu globalSetting.PreserveReferencesHandling = PreserveReferencesHandling.Objects; // should not let json decoder to read this line. - if (stream.PeekLine().Contains("// karaoke json file format v")) + if (stream.PeekLine()?.Contains("// karaoke json file format v") ?? false) { stream.ReadLine(); } diff --git a/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj b/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj index e4e7c488f..cbb3df880 100644 --- a/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj +++ b/osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj @@ -19,7 +19,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - +