mirror of https://github.com/apache/nifi.git
NIFI-13817 Protect against null asset ids when synchronizing parameter context
This closes #9324 Signed-off-by: Joseph Witt <joewitt@apache.org>
This commit is contained in:
parent
dffa88aaae
commit
d1fbf19ec7
|
@ -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<String> currentAssetIds = currentAssetReferences.get(parameterName);
|
||||
final Set<String> currentAssetIds = currentAssetReferences.getOrDefault(parameterName, Collections.emptySet());
|
||||
|
||||
final Parameter updatedParameterObject = parameters.get(parameterName);
|
||||
final String updatedValue = updatedParameterObject.getValue();
|
||||
|
|
Loading…
Reference in New Issue