1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-21 01:39:54 +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
Unverified
@@ -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)