diff --git a/GameLauncher_Console/GameLauncher_Console/Platforms/Arc.cs b/GameLauncher_Console/GameLauncher_Console/Platforms/Arc.cs index fa0b5e1..0126556 100644 --- a/GameLauncher_Console/GameLauncher_Console/Platforms/Arc.cs +++ b/GameLauncher_Console/GameLauncher_Console/Platforms/Arc.cs @@ -87,6 +87,10 @@ public void GetGames(List gameDataList, bool expensiveIcons = fa using (RegistryKey key = Registry.LocalMachine.OpenSubKey(Path.Combine(ARC_REG, ARC_GAMES), RegistryKeyPermissionCheck.ReadSubTree)) // HKLM32 { + if(key == null) + { + return; + } foreach (string subKey in key.GetSubKeyNames()) // Add subkeys to search list { try