Fix nullref exceptions and redundant explicit type

This commit is contained in:
Shivam
2020-06-24 02:13:28 +02:00
parent c32ef5e718
commit af11340849
3 changed files with 5 additions and 6 deletions

View File

@ -30,8 +30,7 @@ namespace osu.Game.Tournament.Components
[BackgroundDependencyLoader]
private void load(Storage storage)
{
var tournamentStorage = storage as TournamentStorage;
var stream = tournamentStorage.VideoStore.GetStream(filename);
var stream = (storage as TournamentStorage)?.VideoStore.GetStream(filename);
if (stream != null)
{