diff --git a/osu.Game/Beatmaps/WorkingBeatmap.cs b/osu.Game/Beatmaps/WorkingBeatmap.cs index 63a33c700e..f2f4a39d91 100644 --- a/osu.Game/Beatmaps/WorkingBeatmap.cs +++ b/osu.Game/Beatmaps/WorkingBeatmap.cs @@ -18,7 +18,7 @@ namespace osu.Game.Beatmaps public readonly BeatmapSetInfo BeatmapSetInfo; private readonly BeatmapDatabase database; - private ArchiveReader reader => database.GetReader(BeatmapSetInfo); + private ArchiveReader reader => database?.GetReader(BeatmapSetInfo); private Texture background; private object backgroundLock = new object(); @@ -77,7 +77,7 @@ namespace osu.Game.Beatmaps try { - var trackData = reader.GetStream(BeatmapInfo.Metadata.AudioFile); + var trackData = reader?.GetStream(BeatmapInfo.Metadata.AudioFile); if (trackData != null) track = new AudioTrackBass(trackData); }