B2018-116 added a null reference check in logic that allow you to unlink a background step
This commit is contained in:
parent
fefa774b12
commit
813d48daaa
@ -313,7 +313,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
DevComponents.DotNetBar.BaseItem btn = sender as DevComponents.DotNetBar.BaseItem;
|
||||
ItemInfo ii = ItemInfo.Get(int.Parse(btn.Tag.ToString()));
|
||||
if (ii.ItemID != MyItemInfo.ItemID)
|
||||
if (ii == null || ii.ItemID != MyItemInfo.ItemID) //B2018-116 null reference check - allow user to unlink a background step that has invalid ItemId
|
||||
{
|
||||
// if button name starts with btnEnhancedTo... open it, otherwise, unlink:
|
||||
if (btn.Name.StartsWith("btnEnhancedTo"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user