mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 08:52:56 +08:00
Merge pull request #6312 from peppy/fix-potential-null-test
Handle potential null case
This commit is contained in:
commit
4e9e24f099
@ -75,7 +75,7 @@ namespace osu.Game.Overlays
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns whether the current beatmap track is playing.
|
/// Returns whether the current beatmap track is playing.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsPlaying => beatmap.Value.Track.IsRunning;
|
public bool IsPlaying => beatmap.Value?.Track.IsRunning ?? false;
|
||||||
|
|
||||||
private void handleBeatmapAdded(BeatmapSetInfo set) =>
|
private void handleBeatmapAdded(BeatmapSetInfo set) =>
|
||||||
Schedule(() => beatmapSets.Add(set));
|
Schedule(() => beatmapSets.Add(set));
|
||||||
|
Loading…
Reference in New Issue
Block a user