diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java index 519089f048..3401aa5acd 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java @@ -631,7 +631,7 @@ public class StandardVersionedComponentSynchronizer implements VersionedComponen final String proposedSourceId = proposedConnection.getSource().getId(); final String existingSourceId = existingConnection.getSource().getVersionedComponentId().orElse(null); - if (!Objects.equals(proposedSourceId, existingSourceId)) { + if (existingSourceId != null && !Objects.equals(proposedSourceId, existingSourceId)) { connectionsRemovedDueToChangingSourceId.add(proposedConnection.getIdentifier()); connectionsRemoved.add(proposedConnection.getIdentifier()); }