diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/validation/StandardRuleViolationsManager.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/validation/StandardRuleViolationsManager.java index 5e232dcc1a..ff1a424081 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/validation/StandardRuleViolationsManager.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/validation/StandardRuleViolationsManager.java @@ -155,7 +155,7 @@ public class StandardRuleViolationsManager implements RuleViolationsManager { public Collection getRuleViolationsForGroup(String groupId) { Set groupViolations = subjectIdToRuleViolation.values().stream() .map(Map::values).flatMap(Collection::stream) - .filter(violation -> violation.getGroupId().equals(groupId)) + .filter(violation -> groupId.equals(violation.getGroupId())) .collect(Collectors.toSet()); return groupViolations;