diff --git a/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/serialization/VersionedFlowSynchronizer.java b/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/serialization/VersionedFlowSynchronizer.java index 44affcbcfd..942d2f5ac8 100644 --- a/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/serialization/VersionedFlowSynchronizer.java +++ b/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/serialization/VersionedFlowSynchronizer.java @@ -944,7 +944,7 @@ public class VersionedFlowSynchronizer implements FlowSynchronizer { for (final VersionedParameter parameter : versionedParameterContext.getParameters()) { final String parameterName = parameter.getName(); final String currentValue = currentValues.get(parameterName); - final Set currentAssetIds = currentAssetReferences.get(parameterName); + final Set currentAssetIds = currentAssetReferences.getOrDefault(parameterName, Collections.emptySet()); final Parameter updatedParameterObject = parameters.get(parameterName); final String updatedValue = updatedParameterObject.getValue();