Skip to content

Commit

Permalink
[PT Run] Check for invalid plugin additional option (#13632)
Browse files Browse the repository at this point in the history
* Check for dictionary null key value

* Combine condition in a single if statement
  • Loading branch information
stefansjfw committed Oct 5, 2021
1 parent 59aa9c5 commit 063bedd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/launcher/PowerLauncher/SettingsReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ private static IEnumerable<PluginAdditionalOption> CombineAdditionalOptions(IEnu
var defaultOptions = defaultAdditionalOptions.ToDictionary(x => x.Key);
foreach (var option in additionalOptions)
{
if (defaultOptions.ContainsKey(option.Key))
if (option.Key != null && defaultOptions.ContainsKey(option.Key))
{
defaultOptions[option.Key].Value = option.Value;
}
Expand Down

0 comments on commit 063bedd

Please sign in to comment.