We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 737e8ac commit 6409710Copy full SHA for 6409710
src/ServiceManagement/Services/Commands.Utilities/Common/AzureTools/AzureTool.cs
@@ -96,7 +96,7 @@ private static string GetSdkVersionRegistryValue()
96
}
97
98
// select the latest version of SDK installed on the machine.
99
- version = key.GetSubKeyNames().Last();
+ version = key.GetSubKeyNames().LastOrDefault();
100
101
if (string.IsNullOrWhiteSpace(version) && key.GetSubKeyNames().Length == 0)
102
{
0 commit comments