1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 23:07:26 +08:00

Merge pull request #18586 from peppy/skin-editor-null-ref-on-game-exit

Fix potential null reference in skin editor if target screen is null (during exit)
This commit is contained in:
Bartłomiej Dach 2022-06-06 22:23:02 +02:00 committed by GitHub
commit 45d82d287f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,6 +127,9 @@ namespace osu.Game.Skinning.Editor
private void setTarget(OsuScreen target)
{
if (target == null)
return;
Debug.Assert(skinEditor != null);
if (!target.IsLoaded)