fix crash due to null obj reference

This commit is contained in:
Kang Yu 2023-09-13 13:10:17 -07:00
parent 2c4995e394
commit 6526a119eb

View file

@ -29,6 +29,8 @@ namespace PersistentWindows.Common
private void ListLayout_SelectedIndexChanged(object sender, EventArgs e)
{
if (ListLayout.SelectedItem == null)
return;
selected.Text = ListLayout.SelectedItem.ToString();
}
}