prevent crash of attempt of access of wrong underlying type

This commit is contained in:
Kathy Ruffing 2012-11-27 15:13:55 +00:00
parent 978ca38993
commit f19bded437

View File

@ -1666,6 +1666,7 @@ namespace Volian.Controls.Library
// _NextDownEditItemPath);
if (nextEditItem != null)
{
if (MyStepPanel.ExpandingHLS != null && nextEditItem.MyItemInfo.IsSection) return; // without this, if next item is section, it crashes on null reference
if (MyStepPanel.ExpandingHLS != null && nextEditItem.MyItemInfo.MyHLS.ItemID != MyStepPanel.ExpandingHLS.ItemID)
return;
int bottom = nextEditItem.FindTop(Bottom);