mirror of https://github.com/apache/nifi.git
NIFI-12994 Fix potential NPE when requesting Flow Analysis Results for a Process Group
Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com> This closes #8595.
This commit is contained in:
parent
0bd3635ff9
commit
3a29d72a7c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue