Skip to content

Commit e6ffef6

Browse files
committed
Fixed list item bug
1 parent 4f78da6 commit e6ffef6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

taskt/UI/Forms/frmScriptBuilder.cs

+4
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,10 @@ private void IndentListViewItems()
928928
int indent = 0;
929929
foreach (ListViewItem rowItem in lstScriptActions.Items)
930930
{
931+
if (rowItem is null)
932+
{
933+
continue;
934+
}
931935

932936
if ((rowItem.Tag is Core.Automation.Commands.BeginIfCommand) || (rowItem.Tag is Core.Automation.Commands.BeginMultiIfCommand) || (rowItem.Tag is Core.Automation.Commands.BeginExcelDatasetLoopCommand) || (rowItem.Tag is Core.Automation.Commands.BeginListLoopCommand) || (rowItem.Tag is Core.Automation.Commands.BeginContinousLoopCommand) || (rowItem.Tag is Core.Automation.Commands.BeginNumberOfTimesLoopCommand) || (rowItem.Tag is Core.Automation.Commands.TryCommand))
933937
{

0 commit comments

Comments
 (0)