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:
ryanbodrug-microsoft 2020-06-17 17:02:24 -07:00
parent 0f3b154699
commit fa6d1bb23c

View File

@ -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);
}