Fix stack overflow for looping constructs

This commit is contained in:
Sipke Schoorstra 2022-11-28 21:42:40 +01:00
parent 6bc7b1ec8d
commit 7a8beaca66

View file

@ -37,6 +37,10 @@ public class ActivityWalker : IActivityWalker
foreach (var port in ports)
{
// Continue if the specified activity was already encountered.
if (collectedActivities.Contains(port))
continue;
var childNode = collectedNodes.FirstOrDefault(x => x.Activity == port);
if (childNode == null)