1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 05:59:53 +08:00

fix possible NullReference?

AppVeyor pls?
This commit is contained in:
Aergwyn
2017-12-02 17:04:42 +01:00
Unverified
parent cc76c58f5f
commit ad8cd7eb5d
+1 -1
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