mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 03:42:57 +08:00
Fix crash when attempting to watch a replay when the storage file doesn't exist
This commit is contained in:
parent
0e68620f70
commit
928bce8fcd
@ -25,7 +25,12 @@ namespace osu.Game.Scoring
|
||||
return;
|
||||
|
||||
using (var stream = store.GetStream(replayFilename))
|
||||
{
|
||||
if (stream == null)
|
||||
return;
|
||||
|
||||
Replay = new DatabasedLegacyScoreDecoder(rulesets, beatmaps).Parse(stream).Replay;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user