mirror of
https://github.com/ppy/osu
synced 2024-12-12 01:48:49 +00:00
Fix potential nullref on OsuGameTestScene.TearDownSteps
This commit is contained in:
parent
30fae452a4
commit
986aad4bd5
@ -74,7 +74,7 @@ namespace osu.Game.Tests.Visual
|
||||
[TearDownSteps]
|
||||
public void TearDownSteps()
|
||||
{
|
||||
if (DebugUtils.IsNUnitRunning)
|
||||
if (DebugUtils.IsNUnitRunning && Game != null)
|
||||
{
|
||||
AddStep("exit game", () => Game.Exit());
|
||||
AddUntilStep("wait for game exit", () => Game.Parent == null);
|
||||
|
Loading…
Reference in New Issue
Block a user