Skip to content

Commit daaa484

Browse files
committed
Only add networkInterfaces from submodule if the NetworkInterfaces property is not null
1 parent 65adbc1 commit daaa484

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

LibNoDaveConnectionLibrary/Projectfiles/Step7ProjectV5.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,11 @@ override protected void LoadProject()
15791579
foreach (var cp in CPFolders.Where(x => x.SubModul != null))
15801580
{
15811581
if (cp.NetworkInterfaces == null) cp.NetworkInterfaces = new List<NetworkInterface>();
1582-
cp.NetworkInterfaces.AddRange(cp.SubModul.NetworkInterfaces);
1582+
1583+
if (cp.SubModul.NetworkInterfaces != null)
1584+
{
1585+
cp.NetworkInterfaces.AddRange(cp.SubModul.NetworkInterfaces);
1586+
}
15831587
CPFolders.Remove(cp.SubModul);
15841588
cp.SubModul = null;
15851589
repeat = true;

0 commit comments

Comments
 (0)