diff --git a/Flow.Launcher/Helper/WindowsMediaPlayerHelper.cs b/Flow.Launcher/Helper/WindowsMediaPlayerHelper.cs index 2eec6c89b08..9d2046972eb 100644 --- a/Flow.Launcher/Helper/WindowsMediaPlayerHelper.cs +++ b/Flow.Launcher/Helper/WindowsMediaPlayerHelper.cs @@ -6,6 +6,6 @@ internal static class WindowsMediaPlayerHelper internal static bool IsWindowsMediaPlayerInstalled() { using var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\MediaPlayer"); - return key.GetValue("Installation Directory") != null; + return key?.GetValue("Installation Directory") != null; } }