mirror of https://github.com/apache/nifi.git
NIFI-6028 Protect against null VersionedComponent when finding relevant process group
This closes #3686. Signed-off-by: Mark Payne <markap14@hotmail.com>
This commit is contained in:
parent
9ba280680f
commit
180a188096
|
@ -2472,7 +2472,8 @@ public final class DtoFactory {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
final VersionedProcessGroup relevantProcessGroup = versionedGroups.get(difference.getComponentA().getGroupIdentifier());
|
final VersionedComponent componentA = difference.getComponentA();
|
||||||
|
final VersionedProcessGroup relevantProcessGroup = componentA == null ? null : versionedGroups.get(componentA.getGroupIdentifier());
|
||||||
if (relevantProcessGroup != null && FlowDifferenceFilters.isNewRelationshipAutoTerminatedAndDefaulted(difference, relevantProcessGroup, flowManager)) {
|
if (relevantProcessGroup != null && FlowDifferenceFilters.isNewRelationshipAutoTerminatedAndDefaulted(difference, relevantProcessGroup, flowManager)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue