mirror of https://github.com/apache/nifi.git
NIFI-11176: This closes #6948. When comparing a VersionedConnection with an existing connection, we examined the source component's VersionedComponentId. But the existing component may not have a VersionedComponentId. We should only be comparing these if they are populated
Signed-off-by: Joe Witt <joewitt@apache.org>
This commit is contained in:
parent
1014359c64
commit
471cccbbda
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue