1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 00:33:21 +08:00

Add null check

This commit is contained in:
Dean Herbert 2020-06-15 22:23:06 +09:00
parent 53b7057ee0
commit 97067976f7

View File

@ -30,7 +30,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
Bindable = config.GetBindable<ReleaseStream>(OsuSetting.ReleaseStream),
});
if (updateManager.CanCheckForUpdate)
if (updateManager?.CanCheckForUpdate == true)
{
Add(checkForUpdatesButton = new SettingsButton
{