1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 23:05:37 +08:00

Guard against potential nullref

This commit is contained in:
Dan Balasescu 2020-10-05 19:28:13 +09:00 committed by GitHub
parent 2ed43c14f8
commit 2b824787c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -275,7 +275,7 @@ namespace osu.Game.Screens.Edit.Setup
protected override void Dispose(bool isDisposing) protected override void Dispose(bool isDisposing)
{ {
base.Dispose(isDisposing); base.Dispose(isDisposing);
game.UnregisterImportHandler(this); game?.UnregisterImportHandler(this);
} }
} }