We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1343d20 + 2c66f01 commit 6d6c1beCopy full SHA for 6d6c1be
Flow.Launcher/Helper/WindowsMediaPlayerHelper.cs
@@ -6,6 +6,6 @@ internal static class WindowsMediaPlayerHelper
6
internal static bool IsWindowsMediaPlayerInstalled()
7
{
8
using var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\MediaPlayer");
9
- return key.GetValue("Installation Directory") != null;
+ return key?.GetValue("Installation Directory") != null;
10
}
11
0 commit comments