Merge pull request #15678 from peppy/fix-another-test-nullref

Fix potential null reference in `FadeAccessibleBackground` test class
This commit is contained in:
Dan Balasescu 2021-11-19 16:03:27 +09:00 committed by GitHub
commit 1aa7f681cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -428,7 +428,7 @@ namespace osu.Game.Tests.Visual.Background
public float CurrentDim => dimmable.DimLevel;
public Vector2 CurrentBlur => Background.BlurSigma;
public Vector2 CurrentBlur => Background?.BlurSigma ?? Vector2.Zero;
private TestDimmableBackground dimmable;