This commit is contained in:
2023-03-28 08:22:08 +02:00
parent 35db2e56d4
commit f08b2e91c8
5 changed files with 62 additions and 12 deletions

View File

@@ -61,7 +61,13 @@ namespace Password_Manager
}
this.DataSource = elements;
SelectedIndex = 0;
try
{
SelectedIndex = 0;
} catch (ArgumentOutOfRangeException)
{
SelectedIndex = -1;
}
}
}
}