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:
Bryan Bende 2019-09-03 10:50:54 -04:00 committed by Mark Payne
parent 9ba280680f
commit 180a188096
1 changed files with 2 additions and 1 deletions

View File

@ -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;
} }