mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-12 18:29:24 +08:00
Fix for:
Warning CA1062 In externally visible method 'void App.Main(string[] args)', validate parameter 'args' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument. PowerLauncher C:\Repos\PowerToys\src\modules\launcher\PowerLauncher\App.xaml.cs
This commit is contained in:
parent
0f3b154699
commit
fa6d1bb23c
@ -40,7 +40,7 @@ namespace PowerLauncher
|
||||
{
|
||||
if (SingleInstance<App>.InitializeAsFirstInstance(Unique))
|
||||
{
|
||||
if (args.Length > 0)
|
||||
if (args?.Length > 0)
|
||||
{
|
||||
int.TryParse(args[0], out _powerToysPid);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user