mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
Defensive check for QueryText being empty
This commit is contained in:
@@ -351,8 +351,7 @@ namespace PowerLauncher
|
||||
|
||||
private string ListView_FirstItem(String input)
|
||||
{
|
||||
string s = input;
|
||||
if (s.Length > 0)
|
||||
if (!String.IsNullOrEmpty(input))
|
||||
{
|
||||
String selectedItem = _viewModel.Results?.SelectedItem?.ToString();
|
||||
int selectedIndex = _viewModel.Results.SelectedIndex;
|
||||
|
||||
Reference in New Issue
Block a user