1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 01:02:56 +08:00

Fix null reference in headless tests

This commit is contained in:
Dean Herbert 2022-10-28 18:07:25 +09:00
parent f9d2c30c3e
commit f46a9d683a

View File

@ -244,7 +244,7 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
else
displayDropdown.Hide();
if (host.Window.SafeAreaPadding.Value.Total != Vector2.Zero)
if (host.Window?.SafeAreaPadding.Value.Total != Vector2.Zero)
safeAreaConsiderationsCheckbox.Show();
else
safeAreaConsiderationsCheckbox.Hide();