This is an automated email from the ASF dual-hosted git repository.
pvillard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new 3a29d72a7c NIFI-12994 Fix potential NPE when requesting Flow Analysis
Results for a Process Group
3a29d72a7c is described below
commit 3a29d72a7c351a46a8a0550b50a392d97447d05b
Author: tpalfy <[email protected]>
AuthorDate: Tue Apr 2 18:28:48 2024 +0200
NIFI-12994 Fix potential NPE when requesting Flow Analysis Results for a
Process Group
Signed-off-by: Pierre Villard <[email protected]>
This closes #8595.
---
.../java/org/apache/nifi/validation/StandardRuleViolationsManager.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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<RuleViolation> getRuleViolationsForGroup(String groupId)
{
Set<RuleViolation> 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;