Skip to content

Commit

Permalink
NIFI-13817 Protect against null asset ids when synchronizing paramete…
Browse files Browse the repository at this point in the history
…r context
  • Loading branch information
bbende committed Sep 29, 2024
1 parent dffa88a commit df990d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ private void updateParameterContext(
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();
Expand Down

0 comments on commit df990d6

Please sign in to comment.