Add null check for safety

Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
Dean Herbert 2021-06-28 15:08:49 +09:00 committed by GitHub
parent c281e43cd8
commit 7dd566dc46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -370,7 +370,7 @@ namespace osu.Game
switch (state.NewValue)
{
case GameThreadState.Running:
blocking.Dispose();
blocking?.Dispose();
blocking = null;
break;