1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-23 18:10:01 +08:00

fix possible NullReference?

AppVeyor pls?
This commit is contained in:
Aergwyn 2017-12-02 17:04:42 +01:00
parent cc76c58f5f
commit ad8cd7eb5d

View File

@ -621,7 +621,7 @@ namespace osu.Game.Beatmaps
try
{
Decoder decoder;
using (var stream = new StreamReader(store.GetStream(getPathForFile(BeatmapInfo.Path))))
using (var stream = new StreamReader(store.GetStream(getPathForFile(BeatmapInfo?.Path))))
decoder = Decoder.GetDecoder(stream);
// try for .osb first and fall back to .osu