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

Handle additional null case

This commit is contained in:
Craftplacer 2020-08-12 06:37:33 +02:00
parent 139c0c75f8
commit 8ffaa49839

View File

@ -207,12 +207,9 @@ namespace osu.Game.Beatmaps.Formats
private void handleComboColours(TextWriter writer)
{
if (beatmapSkin == null)
return;
var colours = beatmapSkin?.Configuration.ComboColours;
var colours = beatmapSkin.Configuration.ComboColours;
if (colours.Count == 0)
if (colours == null || colours.Count == 0)
return;
writer.WriteLine("[Colours]");