added a check for a null reference

This commit is contained in:
jjenko committed 2012-12-07 18:54:55 +00:00
1 parent 414378e0f3
commit c52bda13f3
2 files changed
+4 -3

No files matched your search

@@ -57,7 +57,8 @@ namespace Volian.Controls.Library
set
{
_MyStepPanel.SelectedEditItem = _MyStepPanel.GetEditItem(value);
_MyStepPanel.SelectedEditItem.ItemSelect();
if (_MyStepPanel.SelectedEditItem != null)
_MyStepPanel.SelectedEditItem.ItemSelect();
if (!_MyStepPanel.ItemSelectionChangeShown) _MyStepPanel.OnItemSelectedChanged(this, new ItemSelectedChangedEventArgs(_MyStepPanel.SelectedEditItem));
}
}