There are a couple of cases with cyclic handling.
Problem Node adds itself as the next node.
Solution The issue can be solved by adding a check in AbstractChainNode::nextNode() method.
Problem Imagine a scheme: n1 -> n2 -> n1. In other words, these nodes link to each other.
Solution I dunno. I will be glad to hear your opinion.
There are a couple of cases with cyclic handling.
Problem Node adds itself as the next node.
Solution The issue can be solved by adding a check in AbstractChainNode::nextNode() method.
Problem Imagine a scheme: n1 -> n2 -> n1. In other words, these nodes link to each other.
Solution I dunno. I will be glad to hear your opinion.