Fixed IndexOutOfRange exception when trying to search

Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
2025-05-29 10:37:40 +07:00
parent 66a77f3b98
commit 14efe79576

View File

@@ -95,6 +95,7 @@ namespace vCardEditor.View
public void DisplayContacts(SortableBindingList<Contact> contacts)
{
bsContacts.DataSource = null;
if (contacts != null)
bsContacts.DataSource = contacts;