added a check for a null reference

This commit is contained in:
2012-12-07 18:54:55 +00:00
parent 414378e0f3
commit c52bda13f3
2 changed files with 4 additions and 3 deletions

View File

@@ -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));
}
}