diff --git a/PROMS/Volian.Controls.Library/DisplayTabControl.cs b/PROMS/Volian.Controls.Library/DisplayTabControl.cs index 78492a5e..90b2164f 100644 --- a/PROMS/Volian.Controls.Library/DisplayTabControl.cs +++ b/PROMS/Volian.Controls.Library/DisplayTabControl.cs @@ -132,8 +132,16 @@ namespace Volian.Controls.Library /// internal void OnItemSelectedChanged(object sender, ItemSelectedChangedEventArgs args) { - _MyItemInfo = args.MyItemInfo; - _MyStepItem = args.MyStepItem; + if (args != null) + { + _MyItemInfo = args.MyItemInfo; + _MyStepItem = args.MyStepItem; + } + else + { + _MyItemInfo = null; + _MyStepItem = null; + } if (ItemSelectedChanged != null) ItemSelectedChanged(sender, args); } #endregion