From 4a4bc8955d717630c74d17deb6a6b0a13a8a29af Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 27 Dec 2018 20:08:16 +0900 Subject: [PATCH] Fix crash on startup when specifying --no-version-overlay --- osu.Desktop/OsuGameDesktop.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/osu.Desktop/OsuGameDesktop.cs b/osu.Desktop/OsuGameDesktop.cs index bd9ba3501f..2eeb112450 100644 --- a/osu.Desktop/OsuGameDesktop.cs +++ b/osu.Desktop/OsuGameDesktop.cs @@ -70,10 +70,12 @@ namespace osu.Desktop { case Intro _: case MainMenu _: - versionManager.State = Visibility.Visible; + if (versionManager != null) + versionManager.State = Visibility.Visible; break; default: - versionManager.State = Visibility.Hidden; + if (versionManager != null) + versionManager.State = Visibility.Hidden; break; } }