1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 07: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) private void handleComboColours(TextWriter writer)
{ {
if (beatmapSkin == null) var colours = beatmapSkin?.Configuration.ComboColours;
return;
var colours = beatmapSkin.Configuration.ComboColours; if (colours == null || colours.Count == 0)
if (colours.Count == 0)
return; return;
writer.WriteLine("[Colours]"); writer.WriteLine("[Colours]");