NIFI-5377 prevent infinite loop if a controller service circular reference exists

This commit is contained in:
Mark Bean 2018-07-06 12:29:00 +00:00 committed by Matt Gilman
parent 3ef8b4ab8d
commit 0d07bc4951
No known key found for this signature in database
GPG Key ID: DF61EC19432AEE37
1 changed files with 1 additions and 1 deletions

View File

@ -2282,9 +2282,9 @@ public class StandardNiFiServiceFacade implements NiFiServiceFacade {
if (component instanceof ControllerServiceNode) {
final ControllerServiceNode node = (ControllerServiceNode) component;
if (!visited.contains(node)) {
visited.add(node);
findControllerServiceReferencingComponentIdentifiers(node.getReferences(), visited);
}
visited.add(node);
}
}
}