mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 13:05:38 +02:00
fix crash due to null obj reference
This commit is contained in:
parent
2c4995e394
commit
6526a119eb
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ namespace PersistentWindows.Common
|
||||||
|
|
||||||
private void ListLayout_SelectedIndexChanged(object sender, EventArgs e)
|
private void ListLayout_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
if (ListLayout.SelectedItem == null)
|
||||||
|
return;
|
||||||
selected.Text = ListLayout.SelectedItem.ToString();
|
selected.Text = ListLayout.SelectedItem.ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue