1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-28 04:14:26 +08:00

Fix possible MusicController nullref

This commit is contained in:
smoogipoo
2019-10-03 18:48:44 +09:00
Unverified
parent b337a3793d
commit bcf0b2752e
+1 -1
View File
@@ -75,7 +75,7 @@ namespace osu.Game.Overlays
/// <summary>
/// Returns whether the current beatmap track is playing.
/// </summary>
public bool IsPlaying => beatmap.Value?.Track.IsRunning ?? false;
public bool IsPlaying => beatmap?.Value?.Track.IsRunning ?? false;
private void handleBeatmapAdded(BeatmapSetInfo set) =>
Schedule(() => beatmapSets.Add(set));