mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-30 22:15:11 +00:00
[PT Run] Check for invalid plugin additional option (#13632)
* Check for dictionary null key value * Combine condition in a single if statement
This commit is contained in:
@@ -227,7 +227,7 @@ namespace PowerLauncher
|
||||
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user