diff --git a/osu.Desktop.VisualTests/Tests/TestCasePlaySongSelect.cs b/osu.Desktop.VisualTests/Tests/TestCasePlaySongSelect.cs index 5d85bf0a5d..a291f4f65f 100644 --- a/osu.Desktop.VisualTests/Tests/TestCasePlaySongSelect.cs +++ b/osu.Desktop.VisualTests/Tests/TestCasePlaySongSelect.cs @@ -40,7 +40,8 @@ namespace osu.Desktop.VisualTests.Tests protected override void Dispose(bool isDisposing) { - Dependencies.Cache(oldDb, true); + if (oldDb != null) + Dependencies.Cache(oldDb, true); base.Dispose(isDisposing); }