prevent crash of attempt of access of wrong underlying type
This commit is contained in:
parent
978ca38993
commit
f19bded437
@ -1666,6 +1666,7 @@ namespace Volian.Controls.Library
|
|||||||
// _NextDownEditItemPath);
|
// _NextDownEditItemPath);
|
||||||
if (nextEditItem != null)
|
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)
|
if (MyStepPanel.ExpandingHLS != null && nextEditItem.MyItemInfo.MyHLS.ItemID != MyStepPanel.ExpandingHLS.ItemID)
|
||||||
return;
|
return;
|
||||||
int bottom = nextEditItem.FindTop(Bottom);
|
int bottom = nextEditItem.FindTop(Bottom);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user