1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-12 22:32:57 +08:00

Fix disposal logic.

This commit is contained in:
Dean Herbert 2016-11-28 12:25:20 +09:00
parent 97e4653735
commit 54fc25e163

View File

@ -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);
}