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:
Bryan Bende 2024-09-29 09:54:38 -04:00 committed by Joseph Witt
parent dffa88aaae
commit d1fbf19ec7
No known key found for this signature in database
GPG Key ID: 9093BF854F811A1A
1 changed files with 1 additions and 1 deletions

View File

@ -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();